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

# Reset Custom Database

> Resets the custom database by deleting all records.



## OpenAPI

````yaml /api/openapi.json delete /api/v1/database/reset
openapi: 3.1.0
info:
  title: Dock API
  description: >-
    API for managing links between Roblox and Discord accounts, including
    mapping, updating, removing links, and resetting the custom database.
  version: 1.0.0
servers:
  - url: https://api.docksys.xyz
security:
  - bearerAuth: []
paths:
  /api/v1/database/reset:
    delete:
      summary: Reset Custom Database
      description: Resets the custom database by deleting all records.
      responses:
        '200':
          description: Custom database reset successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResetResponse'
              example:
                status: 200
                message: Custom database reset successfully
                data:
                  deletedRecords: 0
                timestamp: '2025-10-02T12:38:56Z'
                version: 1.0.0
                requestsRemaining: 499
                ipRequestsRemaining: 499
        '401':
          description: 'Unauthorized: Missing or invalid Bearer token or API key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                status: 401
                error: 'Unauthorized: Invalid API key'
                timestamp: '2025-10-02T12:38:56Z'
                version: 1.0.0
                requestsRemaining: null
                ipRequestsRemaining: null
        '429':
          description: 'Too Many Requests: Rate limit exceeded or requests too frequent.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitErrorResponse'
              example:
                status: 429
                error: 'Too Many Requests: Daily request limit of 500 exceeded'
                timestamp: '2025-10-02T12:38:56Z'
                version: 1.0.0
                retryAfter: 3600
                requestsRemaining: 0
                ipRequestsRemaining: 0
        '500':
          description: Internal server error or custom database model not available.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                status: 500
                error: Custom database model not available
                timestamp: '2025-10-02T12:38:56Z'
                version: 1.0.0
                requestsRemaining: 499
                ipRequestsRemaining: 499
components:
  schemas:
    ResetResponse:
      type: object
      properties:
        status:
          type: integer
          enum:
            - 200
          description: The HTTP status code of the response.
        message:
          type: string
          description: A message describing the result.
        data:
          type: object
          properties:
            deletedRecords:
              type: integer
              description: The number of records deleted from the custom database.
        timestamp:
          type: string
          format: date-time
          description: The timestamp of the response in ISO 8601 format.
        version:
          type: string
          example: 1.0.0
          description: The API version.
        requestsRemaining:
          type: integer
          nullable: true
          description: Number of requests remaining in the daily quota.
        ipRequestsRemaining:
          type: integer
          nullable: true
          description: >-
            Remaining IP-linked quota shared across API keys detected on the
            same IP.
    ErrorResponse:
      type: object
      properties:
        status:
          type: integer
          enum:
            - 400
            - 401
            - 403
            - 404
            - 500
          description: The HTTP status code of the error response.
        error:
          type: string
          description: A message describing the error.
        timestamp:
          type: string
          format: date-time
          description: The timestamp of the response in ISO 8601 format.
        version:
          type: string
          example: 1.0.0
          description: The API version.
        requestsRemaining:
          type: integer
          nullable: true
          description: Number of requests remaining in the daily quota.
        ipRequestsRemaining:
          type: integer
          nullable: true
          description: >-
            Remaining IP-linked quota shared across API keys detected on the
            same IP.
    RateLimitErrorResponse:
      type: object
      properties:
        status:
          type: integer
          enum:
            - 429
          description: The HTTP status code of the rate limit error response.
        error:
          type: string
          description: A message describing the rate limit error.
        timestamp:
          type: string
          format: date-time
          description: The timestamp of the response in ISO 8601 format.
        version:
          type: string
          example: 1.0.0
          description: The API version.
        retryAfter:
          type: integer
          description: Seconds until the rate limit resets or the next request can be made.
        requestsRemaining:
          type: integer
          nullable: true
          description: Number of requests remaining in the daily quota.
        ipRequestsRemaining:
          type: integer
          nullable: true
          description: >-
            Remaining IP-linked quota shared across API keys detected on the
            same IP.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````