"LOGIC" deletion of records

Hi everyone,
it is the need to modify the behavior of the delete event in many tables of a database, I would like to logically set the record to deleted but without deleting it.
What solution can I use?

Can't you simply create a Deleted field and set it properly in your application when it applies?