def METHOD_NAME(cmd,
                       client,
                       webhook_name,
                       registry_name,
                       resource_group_name=None):
    _, resource_group_name = validate_managed_registry(
        cmd, registry_name, resource_group_name, WEBHOOKS_NOT_SUPPORTED)
    return client.begin_delete(resource_group_name, registry_name, webhook_name)