> ## 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 the current user's S3 credential

> Deletes the S3 credential for the currently logged-in user.

Adhere to the following:
- Deleting a credential can't be undone. Generate a new one if needed.
- Authentication requires a Keycloak token. PSK auth isn't allowed.



## OpenAPI

````yaml delete /api/s3-credentials
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/s3-credentials:
    delete:
      tags:
        - S3 Credentials
      summary: Delete the current user's S3 credential
      description: |-
        Deletes the S3 credential for the currently logged-in user.

        Adhere to the following:
        - Deleting a credential can't be undone. Generate a new one if needed.
        - Authentication requires a Keycloak token. PSK auth isn't allowed.
      operationId: delete_s3_credential_api_s3_credentials_delete
      responses:
        '200':
          description: Credential deleted successfully.
          content:
            application/json:
              schema:
                type: boolean
                title: Response Delete S3 Credential Api S3 Credentials Delete
        '403':
          description: Forbidden, Keycloak token required.
        '404':
          description: No S3 credential found for this user.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: A brief description of the error that occurred.
        code:
          type: integer
          title: Code
          description: The HTTP status code associated with the error.
          default: 500
      type: object
      required:
        - error
      title: ErrorResponse
  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

````