Skip to main content
DELETE
https://sandbox.getcollate.io/api
/
v1
/
tables
/
{id}
DELETE /v1/tables/{id}
from metadata.sdk import configure
from metadata.sdk.entities import Tables

configure(
    host="https://your-company.getcollate.io/api",
    jwt_token="your-jwt-token"
)

# Soft delete by ID
Tables.delete("a1b2c3d4-e5f6-7890-abcd-ef1234567890")

# Hard delete
Tables.delete(
    "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    recursive=True,
    hard_delete=True
)

# Delete by name
Tables.delete_by_name("snowflake_prod.analytics.public.customers")

# Restore a soft-deleted table
Tables.restore("a1b2c3d4-e5f6-7890-abcd-ef1234567890")
{
  "id": "455e3d9d-dbbf-455e-b3be-7191daa825f3",
  "name": "agent_performance_summary",
  "fullyQualifiedName": "sample_data.ecommerce_db.shopify.agent_performance_summary",
  "version": 0.2,
  "updatedAt": 1769982700000,
  "updatedBy": "admin",
  "tableType": "Regular",
  "serviceType": "BigQuery",
  "deleted": true
}

Delete a Table

Delete a table by ID or fully qualified name. Supports soft delete (default), hard delete, and restore operations.

Delete by ID

id
string
required
UUID of the table to delete.
recursive
boolean
default:"false"
Recursively delete child entities.
hardDelete
boolean
default:"false"
Permanently delete the table. If false, the table is soft-deleted and can be restored.

Delete by Name

Use DELETE /v1/tables/name/{fqn} to delete by fully qualified name.
fqn
string
required
Fully qualified name of the table (e.g., snowflake_prod.analytics.public.customers).
recursive
boolean
default:"false"
Recursively delete child entities.
hardDelete
boolean
default:"false"
Permanently delete the table.

Restore a Soft-Deleted Table

Use PUT /v1/tables/restore to restore a soft-deleted table.
id
string
required
UUID of the soft-deleted table to restore.
DELETE /v1/tables/{id}
from metadata.sdk import configure
from metadata.sdk.entities import Tables

configure(
    host="https://your-company.getcollate.io/api",
    jwt_token="your-jwt-token"
)

# Soft delete by ID
Tables.delete("a1b2c3d4-e5f6-7890-abcd-ef1234567890")

# Hard delete
Tables.delete(
    "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    recursive=True,
    hard_delete=True
)

# Delete by name
Tables.delete_by_name("snowflake_prod.analytics.public.customers")

# Restore a soft-deleted table
Tables.restore("a1b2c3d4-e5f6-7890-abcd-ef1234567890")
{
  "id": "455e3d9d-dbbf-455e-b3be-7191daa825f3",
  "name": "agent_performance_summary",
  "fullyQualifiedName": "sample_data.ecommerce_db.shopify.agent_performance_summary",
  "version": 0.2,
  "updatedAt": 1769982700000,
  "updatedBy": "admin",
  "tableType": "Regular",
  "serviceType": "BigQuery",
  "deleted": true
}

Returns

Soft delete returns the table object with deleted: true. Hard delete returns no content (204). Restore returns the restored table object.

Error Handling

CodeError TypeDescription
401UNAUTHORIZEDInvalid or missing authentication token
403FORBIDDENUser lacks permission to delete this table
404NOT_FOUNDTable with given ID or FQN does not exist