Understand how to safely remove records from your MongoDB database using Esix’s deletion methods, including soft deletes and bulk operations.
Once your data is no longer needed, Esix provides two ways of removing models
from the database. You can either use an instance of a model to delete that
model or you can create a query to remove multiple models.
If you have a single model you want to delete, you can use the 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()
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Esix","colors":{"primary":"#EC4899","light":"#F472B6","dark":"#BE185D"},"logo":{"light":"https://mintcdn.com/artmann-esix-32-63/MoxMbTxkufy-h6r0/logo.png?fit=max\u0026auto=format\u0026n=MoxMbTxkufy-h6r0\u0026q=85\u0026s=ed5ff4d424e145918e2e3e6eae217fbd","dark":"https://mintcdn.com/artmann-esix-32-63/MoxMbTxkufy-h6r0/logo.png?fit=max\u0026auto=format\u0026n=MoxMbTxkufy-h6r0\u0026q=85\u0026s=ed5ff4d424e145918e2e3e6eae217fbd"},"favicon":"https://mintcdn.com/artmann-esix-32-63/MoxMbTxkufy-h6r0/favicon.ico?fit=max\u0026auto=format\u0026n=MoxMbTxkufy-h6r0\u0026q=85\u0026s=2c7e6f9e823859f2a4b70291e5cf2396","navbar":{"links":[{"href":"https://github.com/artmann/esix","label":"GitHub"}]},"footer":{"socials":{"github":"https://github.com/artmann/esix"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"artmann-esix-32-63","hasAudioNarration":false,"actualSubdomain":"artmann-esix-32-63","customDomains":["www.esixorm.com"],"gitSource":{"type":"github","owner":"artmann","repo":"esix","deployBranch":"main","contentDirectory":"packages/website","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aa1573f1ecc9c143d18fa9c","collectionId":"dbf2132c-2765-457d-af4a-9e0f1c710453","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aa1573f1ecc9c143d18fa9c"},"entitlements":{},"buildId":"6aa1573f1ecc9c143d18fa9c","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Documentation","count":13},{"language":"default","tag":"Cookbook","count":9},{"language":"default","tag":"Express","count":5},{"language":"default","tag":"Models","count":5},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"Next.js","count":4},{"language":"default","tag":"Querying","count":2},{"language":"default","tag":"Guides","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"docs/deleting-models","slug":"/docs/deleting-models","pageMetadata":{"title":"Deleting Models","description":"Understand how to safely remove records from your MongoDB database using Esix's deletion methods, including soft deletes and bulk operations.","href":"/docs/deleting-models"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Understand how to safely remove records from your MongoDB database using Esix’s deletion methods, including soft deletes and bulk operations.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Once your data is no longer needed, Esix provides two ways of removing models\nfrom the database. You can either use an instance of a model to delete that\nmodel or you can create a query to remove multiple models.`}),`\n`,_jsx(Heading,{level:`2`,id:`deleting-a-single-model`,children:`Deleting a Single Model`}),`\n`,_jsxs(_components.p,{children:[`If you have a single model you want to delete, you can use the `,_jsx(_components.code,{children:`delete`}),` method\non the instance.`]}),`\n`,_jsx(_components.p,{children:`Keep in mind that the data is instantly removed and won’t be recoverable.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` post`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BlogPost`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`find`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'5f5a4c36493d53b6caa8410e'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`delete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`deleting-multiple-models`,children:`Deleting Multiple Models`}),`\n`,_jsx(_components.p,{children:`If you want to remove models in bulk, you can use the normal methods available\non the QueryBuilder to create a matching selection.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Jobs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`where`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'completed'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`limit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`delete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Deleting Models","description":"Understand how to safely remove records from your MongoDB database using Esix's deletion methods, including soft deletes and bulk operations.","href":"/docs/deleting-models"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Deleting a Single Model","slug":"deleting-a-single-model","depth":2,"children":[]},{"title":"Deleting Multiple Models","slug":"deleting-multiple-models","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"artmann-esix-32-63","siteName":"Esix","title":"Deleting Models - Esix","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-14T17:55:52.049Z","originalFileLocation":"docs/deleting-models.md"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Understand how to safely remove records from your MongoDB database using Esix\u0026#x27;s deletion methods, including soft deletes and bulk operations.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Esix\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/artmann-esix-32-63/i954ayvnKlFWiDrH/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/artmann-esix-32-63/i954ayvnKlFWiDrH/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/artmann-esix-32-63/i954ayvnKlFWiDrH/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/artmann-esix-32-63/i954ayvnKlFWiDrH/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/artmann-esix-32-63/i954ayvnKlFWiDrH/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/artmann-esix-32-63/i954ayvnKlFWiDrH/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/artmann-esix-32-63/i954ayvnKlFWiDrH/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/artmann-esix-32-63/i954ayvnKlFWiDrH/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/artmann-esix-32-63/i954ayvnKlFWiDrH/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Deleting Models - Esix\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understand how to safely remove records from your MongoDB database using Esix\u0026#x27;s deletion methods, including soft deletes and bulk operations.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Esix\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.esixorm.com/docs/deleting-models\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://artmann-esix-32-63.mintlify.app/_mintlify/api/og/v2?division=Models\u0026amp;title=Deleting+Models\u0026amp;description=Understand+how+to+safely+remove+records+from+your+MongoDB+database+using+Esix%27s+deletion+methods%2C+including+soft+deletes+and+bulk+operations.\u0026amp;theme=1f971bc49d5b310cb144cb2e\u0026amp;signature=d5dea1f8357981943caa71e52329906e52766b73317c8f38526988b3bae467ba\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Deleting Models - Esix\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understand how to safely remove records from your MongoDB database using Esix\u0026#x27;s deletion methods, including soft deletes and bulk operations.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://artmann-esix-32-63.mintlify.app/_mintlify/api/og/v2?division=Models\u0026amp;title=Deleting+Models\u0026amp;description=Understand+how+to+safely+remove+records+from+your+MongoDB+database+using+Esix%27s+deletion+methods%2C+including+soft+deletes+and+bulk+operations.\u0026amp;theme=1f971bc49d5b310cb144cb2e\u0026amp;signature=d5dea1f8357981943caa71e52329906e52766b73317c8f38526988b3bae467ba\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/artmann-esix-32-63/i954ayvnKlFWiDrH/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Esix\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EC4899\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.esixorm.com/docs/deleting-models\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/deleting-models.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.esixorm.com/#organization\",\"name\":\"Esix\",\"url\":\"https://www.esixorm.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/artmann-esix-32-63/MoxMbTxkufy-h6r0/logo.png?fit=max\u0026auto=format\u0026n=MoxMbTxkufy-h6r0\u0026q=85\u0026s=ed5ff4d424e145918e2e3e6eae217fbd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.esixorm.com#website\",\"name\":\"Esix\",\"url\":\"https://www.esixorm.com\",\"publisher\":{\"@id\":\"https://www.esixorm.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.esixorm.com/docs/deleting-models#webpage\",\"url\":\"https://www.esixorm.com/docs/deleting-models\",\"name\":\"Deleting Models\",\"description\":\"Understand how to safely remove records from your MongoDB database using Esix's deletion methods, including soft deletes and bulk operations.\",\"dateModified\":\"2026-05-14T17:55:52.049Z\",\"isPartOf\":{\"@id\":\"https://www.esixorm.com#website\"},\"breadcrumb\":{\"@id\":\"https://www.esixorm.com/docs/deleting-models#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.esixorm.com/docs/deleting-models#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Models\",\"item\":\"https://www.esixorm.com/docs/defining-models\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deleting Models\",\"item\":\"https://www.esixorm.com/docs/deleting-models\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.esixorm.com/docs/deleting-models#article\",\"headline\":\"Deleting Models\",\"name\":\"Deleting Models\",\"description\":\"Understand how to safely remove records from your MongoDB database using Esix's deletion methods, including soft deletes and bulk operations.\",\"url\":\"https://www.esixorm.com/docs/deleting-models\",\"mainEntityOfPage\":{\"@id\":\"https://www.esixorm.com/docs/deleting-models#webpage\"},\"dateModified\":\"2026-05-14T17:55:52.049Z\",\"publisher\":{\"@id\":\"https://www.esixorm.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.esixorm.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Esix\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Esix","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/docs/introduction"},{"title":"Getting Started","href":"/docs/getting-started"},{"title":"Configuration","href":"/docs/configuration"},{"title":"Effect Quickstart","href":"/docs/effect-quickstart"}]},{"group":"Models","pages":[{"title":"Defining Models","href":"/docs/defining-models"},{"title":"Retrieving Models","href":"/docs/retrieving-models"},{"title":"Inserting \u0026 Updating Models","description":"Learn how to create, update, and modify records in your MongoDB database using Esix's intuitive model methods and mass assignment features.","href":"/docs/inserting-and-updating-models"},{"title":"Deleting Models","href":"/docs/deleting-models"},{"title":"Relationships","description":"Define and traverse relationships between Esix models with hasMany, hasOne, and belongsTo helpers.","href":"/docs/relationships"}]},{"group":"Querying","pages":[{"title":"Pagination","href":"/docs/pagination"},{"title":"Batch Processing","href":"/docs/batch-processing"}]},{"group":"Guides","pages":[{"title":"Testing","href":"/docs/testing"},{"title":"Effect Integration","href":"/docs/effect"}]}]},{"tab":"Cookbook","pages":[{"title":"Cookbook","href":"/docs/cookbook/express/rest-api"}]}]},"title":"Deleting Models - Esix","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":[],"chunks":[]}