@param container  the resource that has the attachments to be deleted.