# RemoveAssetPack(string)

> Removes the specified Android asset pack from the device.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Android](/engine/6000.3/script-reference/unityengine/android.md)
* **Assembly:** UnityEngine.AndroidJNIModule

```csharp
public static void RemoveAssetPack(string assetPackName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the Android asset pack to remove.

### Remarks

This method directly wraps Google's [PlayCore plug-in](https://developer.android.com/guide/playcore) API. If the PlayCore plug-in is missing, calling this method throws an `InvalidOperationException`.

If you call this method with any core Unity asset pack names that [AndroidAssetPacks.GetCoreUnityAssetPackNames](/engine/6000.3/script-reference/unityengine/android/androidassetpacks/getcoreunityassetpacknames.md) returns as a parameter, the method has no effect.

Additional Resources: [AndroidAssetPacks.DownloadAssetPackAsync](/engine/6000.3/script-reference/unityengine/android/androidassetpacks/downloadassetpackasync.md).
