Share via


PackageDependency.Delete Method

Definition

Deletes the install-time reference for the framework package dependency you created earlier by using the Create method. This method informs the OS that it is safe to remove the framework package if no other apps have a dependency on it.

public:
 virtual void Delete() = Delete;
void Delete();
public void Delete();
function delete()
Public Sub Delete ()

Remarks

Removing a package dependency is typically done when an app is uninstalled. A package dependency is implicitly removed if its lifetime artifact (specified via the LifetimeArtifact property of the options parameter for the Create and CreateForSystem methods) is deleted. Package dependencies that are not referenced by other packages are elegible to be removed.

The caller of this function must have administrative privileges if the package dependency was created using the CreateForSystem method.

Applies to

See also