---
title: "removeSource | Mobile sdk | Mobile sdk android | Android"
description: "removeSource"
---

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

# removeSource

fun [removeSource](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.style/-m-t-style/remove-source/)(source: [MTSource](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.style.source/-m-t-source/))

Removes a source from the map.

#### Parameters

source

Source to be removed.

#### Throws

[MTStyleError.SourceNotFound](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.style/-m-t-style-error/-source-not-found/)

if source does not exist on the map.
