Example: Remove VPN Configuration

Bundle config = new Bundle(); config.putBoolean(RESTRICTION_REMOVE_CONFIG, true ); DevicePolicyManager dpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); dpm.setApplicationRestrictions(EnforcerDeviceAdminReceiver. getComponentName(this),"com.paloaltonetworks.globalprotect", config);

Related Documentation