Node.js - 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

Last updated on Dec 5, 2024