Delete an entry
Log in to add to favouritesDeletes an entry or specific variations by id, either permanently or to the recycle bin.
delete(id: string, languages?: string[], permanent?: boolean): Promise<void>
Returns
A Promise that will resolve with an empty object.
Example
client.entries.delete('fa9bf8d8-c7f2-4fed-ae38-e7b1b2935d1c')
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call fetch error: ', error);
});
client.entries.delete('fa9bf8d8-c7f2-4fed-ae38-e7b1b2935d1c', ['fr', 'fr-FR'])
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call fetch error: ', error);
});
client.entries.delete('fa9bf8d8-c7f2-4fed-ae38-e7b1b2935d1c', ['fr', 'fr-FR'], true)
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call fetch error: ', error);
});