Public API v2 → Delete External Table Endpoint
About the /extraction/table/{table} endpoint
The /extraction/table/{table} endpoint removes the definition of the specified external table from the Spark Metastore.
- Deleting external tables only removes their definition from the Spark Maetastore. You must delete the respective Parquet files manually from the related paths.
- You must first remove the definition of all external tables in a schema before trying to delete it.
Only the Super admin user (and users with the SuperRole when the Super User Mode is enabled) can use this endpoint.
For information about how to get started with Public API v2, refer to References → Public API v2.
Use the HTTPS
or HTTP
scheme according to your installation. You must use the HTTPS
scheme to successfully run the API endpoints on Cloud installations.
Request URL
https://<cluster_URL>/incorta/api/v2/{tenant}/extraction/table/{table}
Examples:
https://mycluster.incorta.com/incorta/api/v2/default/extraction/table/externalTable1
https://10.1.2.3:8080/incorta/api/v2/default/extraction/table/externalTable1
Request URL Parameters
Parameter | Description | Type | Required |
---|---|---|---|
tenant | The tenant name (case-sensitive) | String | Required |
table | The fully qualified name of the external table you want to delete in the following format: external_schema.external_table . | String | Required |
HTTP method
DELETE
Request headers
{"Content-Type": "application/json","Accept": "application/json","Authorization": "Bearer {access_token}"}
You must use a valid access token for the Super admin user (or a user with the SuperRole if the Super User Mode is enabled). For information about creating an access token, refer to Public API v2 → Create an API access token.
Endpoint response
The following table shows the HTTP response status codes for this endpoint.
Code | Description | Payload Response |
---|---|---|
200 | OK The endpoint successfully ran and deleted the external table. | |
400 | Bad Request You provided invalid values. | {"message": "string"} |
401 | Unauthenticated The endpoint couldn’t run successfully due to authentication errors, such as an invalid or expired access token. | {"message": "string"} Example: {"message": "INC_09030108: Invalid authentication header. Invalid Token [abcd1234]"} |
404 | Not Found The tenant doesn't exist or is disabled. | {"message": "string"} Example: {"message": "Invalid [DEFAULT] tenant in resource path"} |
500 | Internal Server Error The endpoint couldn’t run successfully due to a server error. | {"message": "string"} Example: {"message": "The target table name should have schema specified"} |