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

> 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.

# cleanupExpiredPacks

suspend fun [cleanupExpiredPacks](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-pack/-companion/cleanup-expired-packs/)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html))

Cleans up packs that have been expired for longer than the grace period. This permanently deletes the packs and their files from the disk.

#### Parameters

context

Android context.
