collection.doc.delete()

Deletes a document from a collection.

import { collection } from '@nitric/sdk';
const profiles = collection('profiles').for('deleting');
const drakesProfile = profiles.doc('Drake Mallard');
await drakesProfile.delete();

See also