Nitric logo

Collections

collection.doc.delete()

Delete 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

Previous
collection.doc.set()