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

# clear_table

### clear\_table

<ul>
  <li>
    clear\_table(\
    &#x20;table\_name?: string,\
    &#x20;authorization?: string,\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/javascript/types/GPUdbCallback.md),\
    ): Promise\<[ClearTableResponse](https://docs.kinetica.com/content/api/javascript/interfaces/ClearTableResponse.md)>

    Clears (drops) one or all tables in the database cluster. The operation is synchronous meaning that the table will be cleared before the function returns. The response payload returns the status of the operation along with the name of the table that was cleared.

    #### Parameters

    <ul>
      <li>
        `Optional`table\_name: string

        Name of the table to be cleared, in \[schema\_name.]table\_name format, using standard name resolution rules. Must be an existing table. Empty string clears all available tables, though this behavior is prevented by default via system configuration parameter disable\_clear\_all.
      </li>

      <li>
        `Optional`authorization: string

        No longer used. User can pass an empty string.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/javascript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[ClearTableResponse](https://docs.kinetica.com/content/api/javascript/interfaces/ClearTableResponse.md)>

    Promise\<Types.ClearTableResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:5405](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L5405)</li>
    </ul>
  </li>
</ul>

### clear\_table\_request

<ul>
  <li>
    clear\_table\_request(\
    &#x20;request: [ClearTableRequest](https://docs.kinetica.com/content/api/javascript/interfaces/ClearTableRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/javascript/types/GPUdbCallback.md),\
    ): Promise\<[ClearTableResponse](https://docs.kinetica.com/content/api/javascript/interfaces/ClearTableResponse.md)>

    Clears (drops) one or all tables in the database cluster. The operation is synchronous meaning that the table will be cleared before the function returns. The response payload returns the status of the operation along with the name of the table that was cleared.

    #### Parameters

    <ul>
      <li>
        request: [ClearTableRequest](https://docs.kinetica.com/content/api/javascript/interfaces/ClearTableRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/javascript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[ClearTableResponse](https://docs.kinetica.com/content/api/javascript/interfaces/ClearTableResponse.md)>

    Promise\<Types.ClearTableResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:5377](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L5377)</li>
    </ul>
  </li>
</ul>


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