https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.batch.cloudpool.removefrompool?view=azure-dotnet
CloudPool.RemoveFromPool Method (Microsoft.Azure.Batch) - Azure for .NET Developers | Microsoft...
Removes the specified compute nodes from this pool.
microsoft azuremethodbatchdevelopers