This method is used when a container in which a resource may have attachments is deleted.