Handles soft-deletion of database records