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

# Delete a space collection

> Its spaces move to the catch-all collection.



## OpenAPI

````yaml /api-reference/endpoint/workspaces/openapi.json delete /workspaces/space-collection/{id}
openapi: 3.1.0
info:
  title: Workspaces API
  version: 1.1.0
  description: >-
    Spaces, tasks, task actions, comments, folders and the task-sync routes.
    Task-sync routes also accept an integration token (`oauth2`); every other
    route needs a user session or API key.
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Tasks
  - name: Files
  - name: Folders
  - name: Task Schedules
  - name: Distribution
paths:
  /workspaces/space-collection/{id}:
    delete:
      tags:
        - Space Collections
      summary: Delete a space collection
      description: Its spaces move to the catch-all collection.
      operationId: deleteSpaceCollection
      parameters:
        - name: id
          in: path
          required: true
          description: Collection id.
          schema:
            type: string
      responses:
        '200':
          description: The user's collections
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpaceCollectionsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    SpaceCollectionsResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/SpaceCollection'
        results_total:
          type: integer
        is_default:
          type: boolean
          description: True when the user has saved nothing and the list is computed.
        collection:
          $ref: '#/components/schemas/SpaceCollection'
          description: The collection a create or update wrote.
    SpaceCollection:
      type: object
      required:
        - name
      properties:
        id:
          type: string
          readOnly: true
        name:
          type: string
          maxLength: 120
        description:
          type: string
          maxLength: 500
        icon:
          type: object
          properties:
            name:
              type: string
              maxLength: 64
            color:
              type: string
              description: Hex colour such as `#2563EB`.
        space_ids:
          type: array
          items:
            type: string
          description: >-
            Spaces in the collection, in display order. A space sits in one
            collection; adding it here removes it from the others.
        catch_all:
          type: boolean
          description: Receives every visible space not placed elsewhere.
        created_at:
          type: string
        updated_at:
          type: string
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: Stable machine code. Branch on this, not on `error`.
      required:
        - error
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.