clearTable

fun clearTable(catalog: Catalog, identifier: TableIdentifier, io: FileIO, tableLocation: String)

Clears the table identified by the provided TableIdentifier. This removes all data and files associated with the org.apache.iceberg.Table.

Parameters

catalog

The Catalog that is used to drop the org.apache.iceberg.Table.

identifier

The TableIdentifier that identifies the org.apache.iceberg.Table to be cleared.

io

The FileIO that may be used to delete the underlying data and metadata files.

tableLocation

The storage location of files associated with the org.apache.iceberg.Table.