175
Views
2
Comments
delete

How to do soft delete and hard delete in database?

2025-04-17 05-42-16
Ajit Kurane

Hello Shanmuga,

Hope you are doing well.

Recently @Akshay Deshpande šŸš€  has explained well about soft delete.

Please check below post.

https://www.outsystems.com/forums/discussion/75330/soft-delete/

for delete data from entity you can have:

https://success.outsystems.com/Documentation/How-to_Guides/Data/How_to_delete_data_from_Entities#:~:text=Add%20a%20%22dummy%22%20Output%20Entity,data%20from%20th


Hope it helps you.

Regards,

Ajit Kurane.

2018-10-18 08-34-00
Eric Bulters
Ā 
MVP

Hello Shanmuga,

To do a soft delete you can add an attribute to an entity called "isDeleted" or "isActive" (or anything you'd like). Then on the soft delete you update that attribute for the record you want to soft delete.
Then in you aggregates in your application you filter out all of the isDeleted ones.

A hard delete can be done using the default delete functionality of an entity

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.