92.13 Removing a Dynamic Module
The final task in this project is to implement the deleteFeature() method as follows in the MainActivity.kt file:
fun deleteFeature(view: View) {
manager.deferredUninstall(Arrays.asList("my_dynamic_feature"))
}
The removal of the feature will be performed in the background by the operating system when additional storage space is needed. As with the deferredInstall() method, multiple features may be scheduled for removal in a single call.