Skip to content
Last updated

Delete a Table

All column configurations defined in the table are removed when you delete the table.

Call #DELETE /reporting/datamodels/{datamodel_id}/datasets/{datasets_id}/tables/{tables_id}.

For the API endpoint, select the appropriate endpoint for your region.

curl -X DELETE https://<api endpoint>/reporting/datamodels/xxxxxx/datasets/yyyyyy/tables/zzzzzz \
  -H 'authorization: TD1 xxxx/xxxxxxxxxxxxxx' \
  -H 'cache-control: no-cache' \
  -H 'accept: application/json'

Consider any relations defined in the table that you want to delete. After the table has been deleted, the relation definition remains. This might result in a failure to build an Insights model. To avoid this, review Update a Data Model Relation before you delete the table.

Get datasets_id and tables_id

  1. Run a GET request to /reporting/datamodels/{datamodel_id}
  2. Check the returned payload for the datasets section to get the datasets_id and the tables_id for the table you need to delete.