# Unlink the repository

> Remove the link. The function and its deployments stay. A manual webhook left in the repository stops being accepted, so remove it there too.

`DELETE https://api.zavu.dev/v1/functions/{functionId}/git-link`

Remove the link. The function and its deployments stay. A manual webhook left in the repository stops being accepted, so remove it there too.

## Parameters

- `functionId` (path, string, required): Zavu Function ID.

## Responses

### 204

Link removed.

### 401

Unauthorized.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 404

No repository is linked to this function.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

## Example

```bash
curl -X DELETE "https://api.zavu.dev/v1/functions/function_abc123/git-link" \
  -H "Authorization: Bearer $ZAVUDEV_API_KEY"
```

```typescript
import Zavudev from "@zavudev/sdk";

const zavu = new Zavudev({ apiKey: process.env.ZAVUDEV_API_KEY });

await zavu.functions.gitLink.unlink("function_abc123");
```
