# removeProtocol()

> **removeProtocol**(`customProtocol`: `string`): `void`

Defined in: [source/protocol\_crud.ts:58](<https://github.com/maplibre/maplibre-gl-js/blob/538a7680ab16d5cf5a6564ee0ce72a11be14d142/src/source/protocol_crud.ts#L58>)

Removes a previously added protocol in the main thread.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `customProtocol` | `string` | the custom protocol to remove registration for |

## Returns

`void`

## Example

```ts
removeProtocol('custom');
```
