This method is used when a user deleted an attachment or its container.