[android-components](../../index.md) / [mozilla.components.feature.media.service](../index.md) / [AbstractMediaService](index.md) / [onDestroy](./on-destroy.md)

# onDestroy

`open fun onDestroy(): `[`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#L35)