Service Fabric下删除实例并注销应用:
以应用名称:Application1为例
1、打开PowerShell
2、连接集群: Connect-ServiceFabricCluster -ConnectionEndpoint localhost:19000
3、删除实例: Remove-ServiceFabricApplication -ApplicationName fabric:/Application1 –force
4、注销应用: Unregister-ServiceFabricApplicationType -ApplicationTypeName "Application1Type" -ApplicationTypeVersion "1.0.0" –Force
其中:1.0.0为版本号
参考:https://docs.microsoft.com/en-us/powershell/module/servicefabric/?view=azureservicefabricps