<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-implement-soft-delete-with-prisma-using-partial-indexes-znrmly06b" -->

---
title: How to Implement Soft Delete with Prisma using Partial...
description: Learn how to implement soft delete with Prisma using partial indexes and manage unique indexes outside of the Prisma schema.
canonical: https://daily.dev/posts/how-to-implement-soft-delete-with-prisma-using-partial-indexes-znrmly06b
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Implement Soft Delete with Prisma using Partial Indexes | daily.dev
og:description: Learn how to implement soft delete with Prisma using partial indexes and manage unique indexes outside of the Prisma schema.
og:url: https://daily.dev/posts/how-to-implement-soft-delete-with-prisma-using-partial-indexes-znrmly06b
og:image: https://api.daily.dev/og/posts/ZNrMLy06b.png
og:image:alt: How to Implement Soft Delete with Prisma using Partial Indexes
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Implement Soft Delete with Prisma using Partial Indexes

**[This Dot](https://daily.dev/sources/thisdot)** · 6 min read · 3 upvotes · 0 comments

## Summary

Learn how to implement soft delete with Prisma using partial indexes and manage unique indexes outside of the Prisma schema.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.thisdot.co/blog/how-to-implement-soft-delete-with-prisma-using-partial-indexes>

---

Tags: [#prisma](https://daily.dev/tags/prisma)

[View this post on daily.dev](https://daily.dev/posts/how-to-implement-soft-delete-with-prisma-using-partial-indexes-znrmly06b)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Implement Soft Delete with Prisma using Partial Indexes","url":"https://daily.dev/posts/how-to-implement-soft-delete-with-prisma-using-partial-indexes-znrmly06b","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-implement-soft-delete-with-prisma-using-partial-indexes-znrmly06b"},"datePublished":"2024-02-02T15:07:06.842Z","dateModified":"2024-05-09T08:39:06.345Z","description":"Learn how to implement soft delete with Prisma using partial indexes and manage unique indexes outside of the Prisma schema.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/72ce33f9429d3e93f79d60c921aed53e?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/72ce33f9429d3e93f79d60c921aed53e?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"This Dot","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"This Dot","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6e22565142ee45b386c8bc12bdb3d117","url":"https://daily.dev/sources/thisdot"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-implement-soft-delete-with-prisma-using-partial-indexes-znrmly06b","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"prisma","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"This Dot","item":"https://daily.dev/sources/thisdot"},{"@type":"ListItem","position":3,"name":"How to Implement Soft Delete with Prisma using Partial Indexes"}]}
```

