> ## 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_tables

### clear\_tables

<ul>
  <li>
    clear\_tables(\
    &#x20;table\_names?: string\[],\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[ClearTablesResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/ClearTablesResponse.md)>

    Clears (drops) tables in the database cluster. The operation is synchronous meaning that the tables will be cleared before the function returns. The response payload returns the status of the operation for each table requested.

    #### Parameters

    <ul>
      <li>
        `Optional`table\_names: string\[]

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

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

        Optional parameters.
      </li>

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

        Optional callback function
      </li>
    </ul>

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

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

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

### clear\_tables\_request

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

    Clears (drops) tables in the database cluster. The operation is synchronous meaning that the tables will be cleared before the function returns. The response payload returns the status of the operation for each table requested.

    #### Parameters

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

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

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

        Optional callback function
      </li>
    </ul>

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

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

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


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