Deleting logic to soft delete.