---
schema_version: "1"
id: b93426c84a8d8532a81083b4aeb43fcc8d5c07c73e597fc01826f1020f1036e0
title: CancelDeployResult
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_canceldeployresult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_canceldeployresult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b8c79ed8846a46ac8a35a3e0b15a17fbe5ce57133efa5af3eaccb4b76110be91
description: Contains information about a deployment cancellation—whether the cancellation completed and the deployment ID.
---
# CancelDeployResult

Contains information about a deployment cancellation—whether the cancellation completed and the deployment ID.

The asynchronous metadata call [cancelDeploy()](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_canceldeploy.htm "Cancels a deployment that hasn’t completed yet.") returns a CancelDeployResult object.

## Version

Available in API version 30.0 and later.

CancelDeployResult has the following properties.

## done

- **Type**: boolean
- **Description**: Indicates whether the deployment cancellation, which is started through cancelDeploy(), has completed (true) or not (false).
    
    When a deployment hasn’t started yet and is still in the queue, the deployment is canceled immediately with the cancelDeploy() call and this field returns true. Otherwise, this field returns false when the cancellation is in progress.

## id

- **Type**: ID
- **Description**: ID of the deployment being canceled.