Share via


SharedPackageContainerManager.DeleteContainer Method

Definition

Deletes the specified package container.

public:
 virtual DeleteSharedPackageContainerResult ^ DeleteContainer(Platform::String ^ id, DeleteSharedPackageContainerOptions ^ options) = DeleteContainer;
DeleteSharedPackageContainerResult DeleteContainer(winrt::hstring const& id, DeleteSharedPackageContainerOptions const& options);
public DeleteSharedPackageContainerResult DeleteContainer(string id, DeleteSharedPackageContainerOptions options);
function deleteContainer(id, options)
Public Function DeleteContainer (id As String, options As DeleteSharedPackageContainerOptions) As DeleteSharedPackageContainerResult

Parameters

id
String

Platform::String

winrt::hstring

The ID of the package to delete.

options
DeleteSharedPackageContainerOptions

A DeleteSharedPackageContainerOptions object specifying options for the delete operation.

Returns

A DeleteSharedPackageContainerResult object providing status information about the delete operation.

Remarks

Deletion destroys the container and all of its data in the current manager scope. For a user-scoped manager, it only removes for the current user. For a machine-scoped manager, it deprovisions the container so future users won’t acquire it.

Applies to