PHPackages                             burriko/cake-soft-delete - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. burriko/cake-soft-delete

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

burriko/cake-soft-delete
========================

Soft delete for CakePHP models.

82.9k4[3 issues](https://github.com/burriko/cakephp-soft-delete/issues)PHP

Since Aug 14Pushed 12y ago1 watchersCompare

[ Source](https://github.com/burriko/cakephp-soft-delete)[ Packagist](https://packagist.org/packages/burriko/cake-soft-delete)[ RSS](/packages/burriko-cake-soft-delete/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

CakePHP Soft Delete Plugin
==========================

[](#cakephp-soft-delete-plugin)

Soft delete for CakePHP 2.x models. Transparently flags records as deleted instead of actually removing them. Will also then hide the deleted records from find operations.

Installation
------------

[](#installation)

If you're using composer then just add the following to your require block.

```
	"burriko/cake-soft-delete": "2.0.*@dev"

```

If you're not, then clone/copy the contents of this directory to app/Plugins/CakeSoftDelete.

Configure
---------

[](#configure)

1. Add the following line to your app/Config/bootstrap.php.

    ```
     CakePlugin::load('CakeSoftDelete');

    ```
2. Change your AppModel to extend SoftDeletableModel. You'll also need to add an appropriate App::uses to tell Cake where to load SoftDeletableModel. Basically Your AppModel class should start something like this.

    ```
