# Remove pre-receive hook enforcement for a repository

From **GitHub v3 REST API**.

`DELETE /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}`

Deletes any overridden enforcement on this repository for the specified hook.

Responds with effective values inherited from owner and/or global level.

## Parameters

### `owner`

- Location: path
- Required: true
- Type: `string`

### `repo`

- Location: path
- Required: true
- Type: `string`

### `pre_receive_hook_id`

- Location: path
- Required: true
- Type: `integer`

pre_receive_hook_id parameter

## Responses

### `200`

Responds with effective values inherited from owner and/or global level.

### `application/json`

- Type: `object`

```json
{
  "configuration_url": "https://github.example.com/api/v3/orgs/octocat/pre-receive-hooks/42",
  "enforcement": "disabled",
  "id": 42,
  "name": "Check Commits"
}
```

```json
{"properties":{"configuration_url":{"type":"string"},"enforcement":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"}},"type":"object"}
```

## Request examples

### cURL

```shell
curl --request DELETE \
  --url {protocol}://{hostname}/api/v3/repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}
```
