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

# removeLayerById

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

Removes a layer by its identifier if present.
