'Delete the underlying container or an object inside it.'

def _deleter(self, obj=None):

    args = [self.resource_id]
    if obj:
        deleter = self.client().delete_object
        args.append(obj['name'])
    else:
        deleter = self.client().delete_container
    with self.client_plugin().ignore_not_found:
        deleter(*args)
