def _delete(self, opts):
    if (not opts.name):
        _exit_if_errors(['--name is needed to delete a function'])
    (_, errors) = self.rest.delete_function(opts.name)
    _exit_if_errors(errors)
    _success('Request to delete the function was accepted')
def _delete(self, opts):
    if (not opts.name):
        _exit_if_errors(['--name is needed to delete a function'])
    (_, errors) = self.rest.delete_function(opts.name)
    _exit_if_errors(errors)
    _success('Request to delete the function was accepted')