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

# Post organisations schemas delete components

> DeleteSchemaComponents deletes a list of schema components, along with any others depending on them.



## OpenAPI

````yaml post /organisations/{organisationId}/schemas/{id}/delete-components
openapi: 3.0.3
info:
  title: Switchboard API
  description: >-
    The Switchboard API provides users the ability to manage their Apps,
    Integrations and Workflows
  version: 0.0.1-alpha.0
servers:
  - url: https://platform.versori.com/api/switchboard/v1alpha1/
    description: Production server
  - url: http://localhost:8080/v1alpha1/
    description: Localhost
security:
  - apiKey: []
paths:
  /organisations/{organisationId}/schemas/{id}/delete-components:
    post:
      tags:
        - schemas
      description: >-
        DeleteSchemaComponents deletes a list of schema components, along with
        any others depending on them.
      operationId: DeleteSchemaComponents
      parameters:
        - name: organisationId
          in: path
          required: true
          schema:
            type: string
          description: >-
            OrganisationID is the ID of the organisation that the schema belongs
            to.
          examples:
            postman:
              summary: Use as a variable in a Postman request
              value: '{{organisationId}}'
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: ID is the schema identifier
          examples:
            postman:
              summary: Use as a variable in a Postman request
              value: '{{schemaId}}'
      requestBody:
        $ref: '#/components/requestBodies/DeleteSchemaComponentsRequest'
      responses:
        '200':
          $ref: '#/components/responses/DeleteSchemaComponentsResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  requestBodies:
    DeleteSchemaComponentsRequest:
      description: >-
        DeleteSchemaComponentsRequest is the request body for deleting a batch
        of Schema Components.
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DeleteSchemaComponentsRequestBody'
  responses:
    DeleteSchemaComponentsResponse:
      description: >
        DeleteSchemaComponentsResponse is the response definition after deleting
        a list of schema components.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DeletedResource'
    ErrorResponse:
      description: The default error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    DeleteSchemaComponentsRequestBody:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
      required:
        - ids
    DeletedResource:
      type: object
      properties:
        id:
          type: string
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        extensions:
          type: object
      required:
        - code
        - message
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization

````