'Perform specified delete policy.'

def handle_delete(self):

    if (self.resource_id is None):
        return
    try:
        self.client().delete_container(self.resource_id)
    except Exception as ex:
        if self.client_plugin().is_conflict(ex):
            (container, objects) = self.client().get_container(self.resource_id)
            if objects:
                msg = (_('The    bucket    you    tried    to    delete    is    not    empty    (%s).') % self.resource_id)
                raise exception.ResourceActionNotSupported(action=msg)
        self.client_plugin().ignore_not_found(ex)
