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

# Bulk Delete Datasets

> Delete multiple datasets in bulk.

This endpoint allows efficient deletion of multiple datasets at once.
It validates permissions for each dataset in the service and provides detailed feedback about
successful and failed deletions for each dataset.

Parameters
----------
delete_request : BulkDeleteDatasetsRequest
    Request containing list of dataset IDs to delete (max 100)
ctx : Context
    Request context including authentication information

Returns
-------
BulkDeleteDatasetsResponse
    Details about the bulk deletion operation including:
    - Number of successfully deleted datasets
    - List of failed deletions with reasons
    - Summary message



## OpenAPI

````yaml https://api.galileo.ai/public/v2/openapi.json delete /v2/datasets/bulk_delete
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.galileo.ai
    description: Galileo Public APIs - galileo-v2
security: []
paths:
  /v2/datasets/bulk_delete:
    delete:
      tags:
        - datasets
      summary: Bulk Delete Datasets
      description: >-
        Delete multiple datasets in bulk.


        This endpoint allows efficient deletion of multiple datasets at once.

        It validates permissions for each dataset in the service and provides
        detailed feedback about

        successful and failed deletions for each dataset.


        Parameters

        ----------

        delete_request : BulkDeleteDatasetsRequest
            Request containing list of dataset IDs to delete (max 100)
        ctx : Context
            Request context including authentication information

        Returns

        -------

        BulkDeleteDatasetsResponse
            Details about the bulk deletion operation including:
            - Number of successfully deleted datasets
            - List of failed deletions with reasons
            - Summary message
      operationId: bulk_delete_datasets_v2_datasets_bulk_delete_delete
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkDeleteDatasetsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkDeleteDatasetsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - OAuth2PasswordBearer: []
        - HTTPBasic: []
components:
  schemas:
    BulkDeleteDatasetsRequest:
      properties:
        dataset_ids:
          items:
            type: string
            format: uuid4
          type: array
          maxItems: 100
          minItems: 1
          title: Dataset Ids
      type: object
      required:
        - dataset_ids
      title: BulkDeleteDatasetsRequest
      description: Request to delete multiple datasets.
    BulkDeleteDatasetsResponse:
      properties:
        deleted_count:
          type: integer
          title: Deleted Count
        failed_deletions:
          items:
            $ref: '#/components/schemas/BulkDeleteFailure'
          type: array
          title: Failed Deletions
        message:
          type: string
          title: Message
      type: object
      required:
        - deleted_count
        - message
      title: BulkDeleteDatasetsResponse
      description: Response from bulk deletion operation.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BulkDeleteFailure:
      properties:
        dataset_id:
          type: string
          format: uuid4
          title: Dataset Id
        dataset_name:
          type: string
          title: Dataset Name
        reason:
          type: string
          title: Reason
      type: object
      required:
        - dataset_id
        - dataset_name
        - reason
      title: BulkDeleteFailure
      description: Details about a failed deletion.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Galileo-API-Key
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: https://api.galileo.ai/login
    HTTPBasic:
      type: http
      scheme: basic

````