Strapi Plugin Soft Delete screenshot

Strapi Plugin Soft Delete

Author Avatar Theme by Christophecvb
Updated: 14 Mar 2024
17 Stars

Powerful Strapi based Soft Delete feature, never loose content again

Categories

Overview

The Soft Delete plugin is a plugin for Strapi Headless CMS that provides a Soft Delete feature. It adds certain fields to all collection and single content types, allowing for the soft deletion of entries. The plugin also includes RBAC (Role-Based Access Control) features, allowing for different levels of access and control over the soft deleted entries. Additionally, the plugin adds a Soft Delete Explorer item to the Admin left panel, which displays the soft deleted entries and allows for their restoration or permanent deletion.

Features

  • Database: Adds _softDeletedAt, _softDeletedById, and _softDeletedByType fields to all collection and single content types.
  • Content Manager & API: The delete action from the Content Manager and API behaves as a soft delete, setting the _softDeletedAt, _softDeletedById, and _softDeletedByType fields accordingly.
  • RBAC: Renames the delete action to Soft Delete and adds various admin permissions related to viewing, restoring, and permanently deleting soft deleted entries.
  • Soft Delete Explorer (Admin left Panel item): Displays soft deleted collection and single type entries and allows for their restoration or permanent deletion.

Installation

To install the Soft Delete plugin, follow these steps:

  1. Navigate to the plugins folder of your Strapi project.
  2. Run the following command in your terminal to install the plugin:
npm install strapi-plugin-soft-delete
  1. Once the installation is complete, you can access the Soft Delete plugin in the Strapi Admin panel.

Summary

The Soft Delete plugin for Strapi Headless CMS adds the ability to perform soft deletes on entries. It modifies the database by adding specific fields to track soft deleted entries. The plugin also enhances the Content Manager and API functionality by implementing soft deletes instead of traditional deletes. Additionally, the RBAC features of the plugin allow for fine-grained control over viewing, restoring, and permanently deleting soft deleted entries. The Soft Delete Explorer in the Admin left panel provides a convenient interface for managing and restoring soft deleted entries. Overall, the Soft Delete plugin offers a comprehensive solution for implementing soft deletions in a Strapi project.