Skip to main content
  • 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

    • Optionaltable_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.

    • Optionaloptions: Record<string, string>

      Optional parameters.

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<ClearTablesResponse>

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

  • 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

    Returns Promise<ClearTablesResponse>

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