Deleting a Topic
Deleting a topic is simple. See the following curl execution sample for deleting an application-scope topic.
curl -v -X DELETE \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
"https://api-jp.kii.com/api/apps/{APP_ID}/topics/{TOPIC_NAME}"
Make sure to replace {APP_ID}
with your application's AppID. Modify the base URI accordingly for deleting a group-scope and user-scope topic (See Push to User Notification for more information).
If the topic is successfully deleted, Kii Cloud will return a 204 response. If the specified topic does not exist, Kii Cloud will return a 404 response with the error code TOPIC_NOT_FOUND
.