Fetch the complete documentation index at: https://y42-public-api.readme.io/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# Delete a space

Deletes a space and all its data stored in Y42. The data in the linked DWH and storage bucket will not be deleted.

# OpenAPI definition

```json
{
  "components": {
    "securitySchemes": {
      "Bearer": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "PUBLIC API",
    "version": "1.1.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/api/1/github-backend/{org_slug}/{space_slug}": {
      "delete": {
        "description": "Deletes a space and all its data stored in Y42. The data in the linked DWH and storage bucket will not be deleted.",
        "parameters": [
          {
            "in": "path",
            "name": "org_slug",
            "required": true,
            "schema": {
              "type": "string",
              "example": "acme-inc"
            },
            "description": "Organization slug. Refer to [Y42 Docs](https://docs.y42.dev/docs/organizations/general-settings#slug) for more details."
          },
          {
            "in": "path",
            "name": "space_slug",
            "required": true,
            "schema": {
              "type": "string",
              "example": "analytics-v3"
            },
            "description": "Space slug. Refer to [Y42 Docs](https://docs.y42.dev/docs/spaces/settings/general-settings#slug) for more details."
          }
        ],
        "responses": {
          "204": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {},
                  "title": "EmptyResponse",
                  "type": "object"
                }
              }
            },
            "description": ""
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error_message": {
                      "title": "Error Message",
                      "type": "string"
                    }
                  },
                  "required": [
                    "error_message"
                  ],
                  "title": "ErrorResponse",
                  "type": "object"
                }
              }
            },
            "description": ""
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error_message": {
                      "title": "Error Message",
                      "type": "string"
                    }
                  },
                  "required": [
                    "error_message"
                  ],
                  "title": "ErrorResponse",
                  "type": "object"
                }
              }
            },
            "description": ""
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error_message": {
                      "title": "Error Message",
                      "type": "string"
                    }
                  },
                  "required": [
                    "error_message"
                  ],
                  "title": "ErrorResponse",
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a space",
        "tags": [
          "Spaces"
        ]
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "servers": [
    {
      "url": "https://api.y42.dev/"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 214,
      "2": 123,
      "3": 42,
      "4": 92,
      "5": 10,
      "6": 168,
      "7": 0,
      "8": 24,
      "9": 133,
      "10": 170,
      "11": 38
    }
  }
}
```