Skip to main content
Source

pub async fn clear_tables( &self, table_names: Vec<String>, ) -> Result<ClearTablesResponse, KineticaError>

Delete tables

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.

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

Delete tables

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.

  • table_names - 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.
  • options - The optional parameters; any left unset take the server’s defaults.

Sends a pre-built ClearTablesRequest to the /clear/tables endpoint.

Sends a pre-built ClearTablesRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.