@Override
public Boolean delete(Resource resource, AzureDeleteContextObject aDCO) throws Exception {
Stack stack = stackRepository.findById(aDCO.getStackId());
AzureCredential credential = (AzureCredential) stack.getCredential();
AzureCloudServiceDeleteTaskContext azureCloudServiceDeleteTaskContext =
new AzureCloudServiceDeleteTaskContext(aDCO.getCommonName(), resource.getResourceName(),
stack, aDCO.getNewAzureClient(credential));
azureCloudServiceRemoveReadyPollerObjectPollingService
.pollWithTimeout(azureCloudServiceDeleteTask, azureCloudServiceDeleteTaskContext, POLLING_INTERVAL, MAX_POLLING_ATTEMPTS);
AzureClient azureClient = aDCO.getNewAzureClient(credential);