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

# Delete objects

> Delete the objects you name, if you can write every one of them.

A POST rather than a DELETE because the keys travel in the body, and a
body on DELETE is dropped by enough proxies to be worth avoiding.



## OpenAPI

````yaml post /api/storage/buckets/{bucket}/objects/delete
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/storage/buckets/{bucket}/objects/delete:
    post:
      tags:
        - Object storage
      summary: Delete objects
      description: |-
        Delete the objects you name, if you can write every one of them.

        A POST rather than a DELETE because the keys travel in the body, and a
        body on DELETE is dropped by enough proxies to be worth avoiding.
      operationId: delete_objects_api_storage_buckets__bucket__objects_delete_post
      parameters:
        - name: bucket
          in: path
          required: true
          schema:
            type: string
            title: Bucket
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteObjectsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteObjectsResponse'
        '403':
          description: 'The general PSK or a schedule: browse as a person.'
        '404':
          description: Not found, or not yours to read (they look the same).
        '422':
          description: Not a valid bucket, path or format.
        '502':
          description: Storage couldn't be read.
        '503':
          description: 'Ranger''s evaluator is unavailable: nothing is shown.'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    DeleteObjectsRequest:
      properties:
        keys:
          items:
            type: string
          type: array
          maxItems: 100
          minItems: 1
          title: Keys
          description: Object keys, e.g. raw/2026/sales.csv.
      type: object
      required:
        - keys
      title: DeleteObjectsRequest
      description: |-
        Objects to delete, named in full.

        A folder is not deletable as such: the caller names the objects, so what
        goes is only ever what was listed and shown to them.
    DeleteObjectsResponse:
      properties:
        deleted:
          items:
            type: string
          type: array
          title: Deleted
          description: Keys that are gone (or were never there).
        failed:
          items:
            type: string
          type: array
          title: Failed
          description: Keys storage refused. The rest still went.
      type: object
      required:
        - deleted
      title: DeleteObjectsResponse
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

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