0
votes

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()

2
This is now supported by Service Fabric; see this answeraoetalks

2 Answers

1
votes

How about this:

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

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

0
votes

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