---
title: "removeProtocol | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Variable removeProtocol

removeProtocol: (customProtocol: string) \=> void

#### Type Declaration

-   -   (customProtocol: string): void
    -   Removes a previously added protocol in the main thread.
        
        #### Parameters
        
        -   customProtocol: string
            
            the custom protocol to remove registration for
            
        
        #### Returns void
        
        #### Example[](#example)
        
        ```typescript
        removeProtocol('custom');
        ```
