DataAPI SDK english MT.DataAPI Endpoint method deleteEntry - movabletype/mt-data-api-sdk-js GitHub Wiki
Delete an entry.
DELETE https://your-host/your-mt-api.cgi/v1/sites/:site_id/entries/:entry_id Detail
| Name | Type | Required | Description |
|---|---|---|---|
| siteId | Number | Object | Function | yes | Site ID |
| entryId | Number | Object | Function | yes | Entry ID |
| callback | Function | no |
XMLHttpRequest: A XMLHttpRequest object
api.deleteEntry(siteId, entryId, function(response) {
if (response.error) {
// Handle error
return;
}
// Do stuff
});