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

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

# unloadOfflinePack

suspend fun [unloadOfflinePack](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/unload-offline-pack/)(fallbackStyle: [MTMapReferenceStyle](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.style/-m-t-map-reference-style/) = MTMapReferenceStyle.STREETS, fallbackVariant: [MTMapStyleVariant](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.style/-m-t-map-style-variant/)? = null, resetCameraLimits: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = true)

Unloads the current offline pack and restores the map to an online style.

#### Parameters

fallbackStyle

The reference style to load after unloading the pack.

fallbackVariant

The style variant to load.

resetCameraLimits

If true, clears any zoom and bounding box restrictions.
