npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@siyahbeyaz/strapi-plugin-soft-delete-custom

v1.2.2

Published

Strapi v5 plugin for soft delete functionality

Readme

Strapi Soft Delete Plugin

npm version License: MIT Strapi Version

A professional soft delete plugin for Strapi v5. Safely delete content with the ability to restore, while maintaining data integrity.

Features

  • Soft Delete: Delete items without permanently removing them from the database
  • Restore Functionality: Easily restore accidentally deleted items via Admin UI
  • Strapi v5 Compatible: Fully compatible with Strapi v5.35.0 and higher
  • DocumentId Support: Properly handles Strapi v5's documentId system
  • Admin UI Explorer: Dedicated page to view and restore soft-deleted items
  • TypeScript Support: Full TypeScript definitions included
  • Zero Configuration: Works out of the box with sensible defaults

Requirements

  • Strapi v5.35.0 or higher
  • Node.js 18.0.0 or higher
  • npm 6.0.0 or higher

Installation

From npm (recommended)

npm install @siyahbeyaz/strapi-plugin-soft-delete-custom

The plugin will automatically configure itself during installation! 🎉

If automatic configuration fails, you can run:

npm run setup

Or manually add to your config/plugins.ts:

export default {
  'soft-delete': {
    enabled: true,
    resolve: '@siyahbeyaz/strapi-plugin-soft-delete-custom'
  },
};

From GitHub

npm install https://github.com/muhammeddeliavci/strapi-plugin-soft-delete-custom/releases/download/v1.2.1/strapi-plugin-soft-delete-custom-1.2.1.tgz

Rebuild and Restart

npm run build
npm run develop

The plugin will be immediately available in your Admin panel under PluginsSoft Delete.

Usage

Soft Delete

When you delete an item via the Content Manager or API, it's not permanently deleted. Instead:

  • softDeletedAt field is set to the current timestamp
  • softDeletedById field records who deleted it
  • softDeletedByType field records the user type (admin/api)

The item becomes invisible in normal queries but can be restored.

Restore Deleted Items

  1. Go to PluginsSoft Delete in the Admin sidebar
  2. Select the content type from the dropdown
  3. Find your deleted item in the list
  4. Click Restore button

The item will be immediately restored and visible again in normal queries.

Programmatic Usage

// Restore a soft-deleted entity
const restored = await strapi
  .plugin('soft-delete')
  .service('restore')
  .restore('api::article.article', documentId);

How It Works

Automatic Field Injection

The plugin automatically adds these fields to all content types:

  • softDeletedAt (datetime) - When the item was soft deleted
  • softDeletedById (string) - ID of the user who deleted it
  • softDeletedByType (string) - Type of user (admin/api)

Query Filtering

Soft-deleted items are automatically excluded from:

  • find and findMany operations
  • Content Manager list views
  • API responses

They only appear in the Soft Delete Explorer.

API Endpoints

All endpoints are prefixed with /admin and require authentication.

List Soft Deleted Items

GET /admin/soft-delete/items?modelUid=api::article.article

Restore Item

POST /admin/soft-delete/restore/:uid/:id

Permissions

  • plugin::soft-delete.read - View soft deleted items
  • plugin::soft-delete.restore - Restore soft deleted items

Troubleshooting

Plugin not appearing in Admin

  1. Ensure you've run npm run build
  2. Check that enabled: true is set in config/plugins.ts
  3. Restart the Strapi server

Items not showing in Soft Delete Explorer

  1. Check the browser console for errors
  2. Ensure the content type has the softDeletedAt field
  3. Try refreshing the page

Migration from Strapi v4

If upgrading from v4, you may need to manually add the soft delete fields to your existing content types or run the migration script.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

MIT © 2026

Support

For issues and feature requests, please use the GitHub issue tracker.


Note: This plugin is designed for Strapi v5. For Strapi v4, please use a different version.