Horia Toma
Horia Toma

Reputation: 1129

Azure Service Fabric: Unprovision application version

I'm looking for a way of cleaning old application versions in Service Fabric via the SDK. It seems there is no way to unprovision a version by using FabricClient's ApplicationManager (similar to the action available in the Service Fabric Explorer, Application Type view) ?

I can get a list of all the versions for an application type by using: fabricClient.QueryManager.GetApplicationTypeListAsync()

Upvotes: 0

Views: 447

Answers (2)

Horia Toma
Horia Toma

Reputation: 1129

SF performes a regular sync on the nodes, so after a while the folders on the disk for the unprovisioned versions will be cleaned.

Upvotes: 1

LoekD
LoekD

Reputation: 11470

How about this:

public System.Threading.Tasks.Task UnprovisionApplicationAsync (string applicationTypeName, string applicationTypeVersion);

Unregisters and removes a Service Fabric application type from the cluster.

Upvotes: 2

Related Questions