[android-components](../../index.md) / [mozilla.components.feature.media.service](../index.md) / [AbstractMediaService](index.md) / [onTaskRemoved](./on-task-removed.md)

# onTaskRemoved

`open fun onTaskRemoved(rootIntent: <ERROR CLASS>?): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/media/src/main/java/mozilla/components/feature/media/service/AbstractMediaService.kt#L46)