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

# Delete Bucket

> Delete a bucket by its ID, The bucket will be deactivated.

A bucket can be deleted by calling the Delete Bucket API with the specific bucket ID.

Do note that once a bucket is deleted it **cannot be recovered**.

Please note that by deleting a bucket, the following scenarios will occur:

* The Bucket will no longer be visible from Athena’s APIs and Frontend.
* The Bucket will no longer be accepting transactions to be loaded into it.
* Screening of transactions in the bucket will no longer be conducted.
* The Bucket can no longer be restored.
* Ordinary bucket (id=0) cannot be deactivated.


## OpenAPI

````yaml delete /api/buckets/{id}
openapi: 3.0.3
info:
  title: Athena API
  version: v3
  x-logo:
    url: https://cynopsis.co/wp-content/uploads/2021/03/logo-2.png
    altText: Cynopsis Solutions
  description: >-
    ATHENA is an advanced real-time transaction monitoring solution designed to
    detect and prevent money laundering, fraud, and terrorism financing. Powered
    by proprietary AML rules, ATHENA analyzes transactions in real time,
    providing clear, intuitive visual insights to streamline compliance
    processes.
        
        ✅ Real-Time Monitoring – Instantly analyzes transaction data to detect anomalies and potential compliance risks.
        ✅ Visualized Insights – Converts complex data into easy-to-understand charts, aiding faster decision-making.
        ✅ Seamless Integration – Easily integrates with existing financial and compliance systems.
        
        Ideal for financial institutions, fintech companies, and regulated businesses, ATHENA enhances risk management and ensures regulatory compliance with ease.
  contact:
    email: tech@cynopsis.co
servers:
  - url: http://localhost/api
    description: Local development server
security: []
paths:
  /api/buckets/{id}:
    delete:
      tags:
        - Buckets
      summary: Delete a bucket
      description: Delete a bucket by its ID, The bucket will be deactivated.
      operationId: bucket_destroy
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: A unique integer value identifying this bucket.
          required: true
      responses:
        '200':
          description: Bucket successfully deactivated.
      security:
        - CustomAuthentication: []
        - cookieAuth: []
        - BearerAuth: []
components:
  securitySchemes:
    CustomAuthentication:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token obtained from AWS Cognito or custom authentication service
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid

````