Show examples in:
Delete a menu item

Returns

Returns a menu_item resource object.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const menuItemId = 'uinr2zfqQLeCo_1O0-ao-Q';
const menuItem = await client.menuItems.destroy(menuItemId);
console.log(menuItem);
}
run();