Skip to main content
Browse Documentation

Delete a content type

Created by Alex Pop on 19 Dec 2019

Deletes a content type from a specific project.

delete(id: string): Promise<void>

Returns

A Promise that will resolve with an empty object.

Example

client.contentTypes.delete('movie')
  .then(result => {      
    console.log('API call result: ', result);              
  })
  .catch(error => {
    console.log('API call fetch error: ', error);      
});