Deletes a topic resource. Before deleting a topic resource, you must delete all subscriptions and sync tasks under the topic.
Operation description
Deletes a topic resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dhs:DeleteTopic |
delete |
*Topic
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The project name. |
feeding |
| TopicName |
string |
Yes |
The name of the topic to delete. |
liuywdb01_hh1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
20250623101207d2a3770b026dd321 |
| Success |
boolean |
Indicates whether the operation is successful. |
True |
Examples
Success response
JSON format
{
"RequestId": "20250623101207d2a3770b026dd321",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Error:%s. | The parameter entered is illegal |
| 400 | MissingParameter | Error:%s. | Missing required parameters |
| 500 | InternalServerError | Error:%s. | Server error, server unavailable or unexpected error occurred |
| 403 | NoPermission | Error:%s. | You are not authorized to perform this operation. |
| 403 | OperationDenied | Error:%s. | Operation denied |
| 404 | ResourceNotFound | Error:%s. | Resource does not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.