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

# DeleteBucket



## OpenAPI

````yaml openapi/api_v1_config_openapi3_DOCUMENTATION_ONLY.json DELETE /api/v1/config/buckets/{slug}
openapi: 3.0.3
info:
  description: >

    The Config API provides standard HTTP/JSON REST endpoints for creating,
    reading,

    updating, deleting, and listing configurable Chronosphere resources.


    Use this link to download the raw Swagger specification:

    <a href="/api/v1/config/swagger.json">/api/v1/config/swagger.json</a>
  title: Config V1 API
  version: v1
servers:
  - url: https://{tenant}.chronosphere.io
    variables:
      tenant:
        default: tenant
        description: tenant ID assigned by the service provider
security:
  - ApiKeyAuth: []
tags:
  - name: ConfigV1
paths:
  /api/v1/config/buckets/{slug}:
    delete:
      tags:
        - Bucket
      operationId: DeleteBucket
      parameters:
        - in: path
          name: slug
          required: true
          schema:
            type: string
        - description: >-
            force_delete indicates deletion of the bucket and all resources that
            reference the bucket.

            This includes monitors, dashboards, notification policies, recording
            rules, and alerts.
          in: query
          name: force_delete
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/configv1DeleteBucketResponse'
          description: A successful response.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: Cannot delete the Bucket because it is in use.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: Cannot delete the Bucket because the slug does not exist.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: An unexpected error response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/genericError'
          description: An undefined error response.
components:
  schemas:
    configv1DeleteBucketResponse:
      properties:
        changes:
          description: >-
            Changes contains what resources are deleted. The bucket being
            deleted will

            always be included. When force_delete is used, the changelog will
            include

            all resources that reference the bucket that were deleted.
          items:
            $ref: '#/components/schemas/ResourceChange'
          type: array
      type: object
    apiError:
      properties:
        message:
          description: An error message describing what went wrong.
          type: string
      type: object
    genericError:
      additionalProperties: true
      type: object
    ResourceChange:
      properties:
        action:
          $ref: '#/components/schemas/ResourceChangeAction'
        resource:
          $ref: '#/components/schemas/configv1ResourceType'
        slug:
          type: string
      type: object
    ResourceChangeAction:
      enum:
        - CREATED
        - UPDATED
        - DELETED
        - NOOP
      type: string
    configv1ResourceType:
      enum:
        - BUCKET
        - DASHBOARD
        - GRAFANA_DASHBOARD
        - MONITOR
        - NOTIFICATION_POLICY
        - RECORDING_RULE
        - MAPPING_RULE
        - ROLLUP_RULE
      type: string
  securitySchemes:
    ApiKeyAuth:
      description: Chronosphere API token
      in: header
      name: API-Token
      type: apiKey

````