# Cancel executions

If you have an execution that is suspended due to an approval task or a technical issue, you can choose to cancel the execution. You can cancel an integration execution if the integration is in one of the following [execution states](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions#state):

- **Suspended**
- **On hold**
- **Retry on hold**

## Cancel an execution

To cancel an execution, select one of the following options:

### Console

1. In **Application Integration** , go to the **Logs** page.

   [Go to Application Integration Logs](https://console.cloud.google.com/integrations/logs)
2. In the navigation menu, click **Logs** . The **Execution Logs** page appears.
3. For the execution that you want to cancel, click and then **Cancel** . The **Cancel execution** pane appears.
4. Add the reason to replay the execution.
5. Click **Cancel Execution**.

### API

Call the [`projects.locations.integrations.executions.cancel` method](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel) and provide the ID of the execution that you want to cancel:

```
curl -X POST https://integrations.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/integrations/INTEGRATION_NAME/executions/EXECUTION_ID:cancel -H "Authorization: Bearer $TOKEN"
```

## Limitations

Cancel execution is subject to the following limitations:

- Canceling an execution that is triggered by a [Schedule trigger](https://docs.cloud.google.com/application-integration/docs/configure-schedule-trigger) isn't supported.
- You can't cancel an integration execution if the integration is in one of the following states:
  - **In process**
  - **Succeeded**
  - **Failed**
  - **Canceled**

## What's next

- Learn about [logs in Application Integration](https://docs.cloud.google.com/application-integration/docs/introduction-logs).
- Learn how to [test and publish integrations](https://docs.cloud.google.com/application-integration/docs/test-publish-integrations).