DELETE /v1/topics/{id}
Delete a Topic
Delete a topic by ID or name, with soft/hard delete options
DELETE
DELETE /v1/topics/{id}
Documentation Index
Fetch the complete documentation index at: https://openmetadata-codex-audit-docs-codebase-alignment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Delete a Topic
Delete a topic by ID or fully qualified name. Supports soft delete (default), hard delete, and restore operations.Delete by ID
UUID of the topic to delete.
Recursively delete child entities.
Permanently delete the topic. If
false, the topic is soft-deleted and can be restored.Delete by Name
UseDELETE /v1/topics/name/{fqn} to delete by fully qualified name.
Fully qualified name of the topic (e.g.,
sample_kafka.address_book).Recursively delete child entities.
Permanently delete the topic.
Restore a Soft-Deleted Topic
UsePUT /v1/topics/restore to restore a soft-deleted topic.
UUID of the soft-deleted topic to restore.
DELETE /v1/topics/{id}
Returns
Soft delete returns the topic object withdeleted: true. Hard delete returns no content (204). Restore returns the restored topic object.
Error Handling
| Code | Error Type | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to delete this topic |
404 | NOT_FOUND | Topic with given ID or FQN does not exist |