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

# removeSourceById

fun [removeSourceById](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.style/-m-t-style/remove-source-by-id/)(sourceId: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html))

Removes a source by its identifier if present.
