This project is read-only.

Delete content items not working

Topics: General, Writing modules
May 1, 2013 at 5:59 PM

I have developed one module which create Events part. Then I have created one created one Content Type and add Events part into it. Added some records into it. Now when I deleted any records/items from this content list it is get deleted from list, but actually is there in DB. When I open Events database table in SQL server, I am still able to view this record.

Please suggest why it is not deleted from DB.
May 1, 2013 at 8:49 PM
Orchard uses "soft" deletes, meaning that your content items and related part records aren't physically deleted. Instead, it marks the content item version as being not published and not the latest, making it "disappear".
May 1, 2013 at 8:54 PM
No one has ever created a module to clean those removed content items. This should be very easy to do.
May 1, 2013 at 8:55 PM
Oh, Sipke, don't do it, please, other more important things to focus on I am sure.
May 2, 2013 at 1:48 AM
Ok fine, no worries, I just "hard" deleted the code ;)