Deleting a Single Model
If you have a single model you want to delete, you can use thedelete method
on the instance.
Keep in mind that the data is instantly removed and won’t be recoverable.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Understand how to safely remove records from your MongoDB database using Esix’s deletion methods, including soft deletes and bulk operations.
delete method
on the instance.
Keep in mind that the data is instantly removed and won’t be recoverable.
const post = await BlogPost.find('5f5a4c36493d53b6caa8410e')
await post.delete()
await Jobs.where('completed', true).limit(12).delete()
