Updated Soft Deleting Code Block