Python - 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

Last updated on Dec 24, 2024