Sdílet prostřednictvím


FabricClient.ApplicationManagementClient.RemoveApplicationPackage Method

Definition

Deletes an application package from the Image Store.

public void RemoveApplicationPackage (string imageStoreConnectionString, string applicationPackagePathInImageStore);
member this.RemoveApplicationPackage : string * string -> unit
Public Sub RemoveApplicationPackage (imageStoreConnectionString As String, applicationPackagePathInImageStore As String)

Parameters

imageStoreConnectionString
String

The connection string for the image store, which should match the "ImageStoreConnectionString" setting value found in the cluster manifest of the target cluster. In an on-premise cluster, the value is chosen during initial deployment by the cluster administrator. In an Azure cluster created through the Azure Resource Manager, this value is "fabric:ImageStore". The image store connection string value can be checked by looking at the cluster manifest contents returned by GetClusterManifestAsync().

applicationPackagePathInImageStore
String

The relative path for the application package in the image store specified during CopyApplicationPackage(String, String, String, TimeSpan).

Exceptions

There was an error accessing a file on the ImageStore.

ImageStoreIOException: There was an IO error communicating with the image store.

ImageBuilderReservedDirectoryError: There was an error while trying to delete reserved folders in the image store.

The request timed out but may have already been accepted for processing by the system.

Applies to