> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vinmake.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Cost Sheet

> Delete a cost sheet and all its versions.

This permanently removes the cost sheet and all associated data including:
- All versions
- All processing cost items
- All related records

**Path Parameters:**
- **costing_id**: The document ID of the cost sheet to delete

**Headers:**
- **X-User-Id**: The ID of the user performing the deletion



## OpenAPI

````yaml /api/openapi-cutmake.json delete /api/v1/costings/{costing_id}
openapi: 3.1.0
info:
  title: VM App API
  version: 0.1.0
servers:
  - url: https://vinmake-erp.onrender.com
security: []
paths:
  /api/v1/costings/{costing_id}:
    delete:
      tags:
        - Costing Management
      summary: Delete Cost Sheet
      description: >-
        Delete a cost sheet and all its versions.


        This permanently removes the cost sheet and all associated data
        including:

        - All versions

        - All processing cost items

        - All related records


        **Path Parameters:**

        - **costing_id**: The document ID of the cost sheet to delete


        **Headers:**

        - **X-User-Id**: The ID of the user performing the deletion
      operationId: delete_cost_sheet_api_v1_costings__costing_id__delete
      parameters:
        - name: costing_id
          in: path
          required: true
          schema:
            type: string
            description: The costing document ID (e.g., CS-2024-001)
            title: Costing Id
          description: The costing document ID (e.g., CS-2024-001)
        - name: X-User-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-User-Id
        - name: X-Org-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostSheetDeleteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    CostSheetDeleteResponse:
      properties:
        success:
          type: boolean
          title: Success
        message:
          type: string
          title: Message
        deleted_id:
          type: string
          title: Deleted Id
      type: object
      required:
        - success
        - message
        - deleted_id
      title: CostSheetDeleteResponse
      description: Response after deleting a cost sheet
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /auth/login

````