Delete content items not working

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

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.
Developer
May 1, 2013 at 7: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".
Coordinator
May 1, 2013 at 7:54 PM
No one has ever created a module to clean those removed content items. This should be very easy to do.
Coordinator
May 1, 2013 at 7:55 PM
Oh, Sipke, don't do it, please, other more important things to focus on I am sure.
Developer
May 2, 2013 at 12:48 AM
Ok fine, no worries, I just "hard" deleted the code ;)