Deleting a KiiObject

You can delete a KiiObject by calling the delete API:

curl -v -X DELETE \
  -H "Authorization: Bearer {ACCESS_TOKEN}" \
  -H "If-Match: 1" \
  "https://api.kii.com/api/apps/{APP_ID}/users/me/buckets/{BUCKET_ID}/objects/{OBJECT_ID}"

Kii Cloud will respond with a 204 response if the KiiObject has been successfully deleted.

If you delete a KiiObject which has an object body, the body will be deleted at the same time. If the object body has been published, its URL will be disabled too. See Deleting an Object Body for more details.

Although there is no API for bulk-deleting multiple KiiObjects, you can delete all KiiObjects in a bucket at once by deleting the bucket. See Deleting a Bucket for more details.