$instanceName= “SPDistributedCacheService Name=AppFabricCachingService”

$serviceInstance= Get-SpServiceInstance | ? {(_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq “<server name>”}

$serviceInstance.Delete()