Removal​Options Removal​Options Removal​Options Enum


Values that modify the removal of a package.

public : enum class RemovalOptionspublic enum RemovalOptionsPublic Enum RemovalOptions
System.FlagsAttribute ContractVersionAttribute
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


None None None

No removal options are specified. This is the default deployment behavior.

PreserveApplicationData PreserveApplicationData PreserveApplicationData

Don't remove any application data when the package is removed. This can only apply to packages that were deployed with the DeploymentOptions::DevelopmentMode value. If you specify PreserveApplicationData on an incompatible package, PackageManager::RemovePackageAsync(String, RemovalOptions) returns E_INVALIDARG.