Nitric logo

Collections

collection.doc.delete()

Delete a document from a collection.

from nitric.resources import collection

profiles = collection('profiles').allow('deleting')
drakes_profile = profiles.doc('Drake Mallard')

await drakes_profile.delete()

See also

Previous
collection.doc.set()