Filipe Mendes
02/10/2025, 4:45 PMkapa.ai
02/10/2025, 4:45 PMcancelJob
endpoint that allows you to cancel a running job. According to the [Airbyte API reference](https://reference.airbyte.com/reference/start), you can use the following HTTP request to cancel a job: DELETE /jobs/{jobId}
This endpoint cancels a running job without affecting the data that has already been synced to the destination tables. It's important to note that canceling a job will stop the ongoing sync process, but it won't remove or clean any data that has already been written to the destination. The data that was successfully synced before the cancellation will remain in the target tables. However, be aware that canceling a sync might leave some temporary tables in your destination. As mentioned in the [GitHub issue about cleaning up unused _airbyte_tmp tables](https://github.com/airbytehq/airbyte/issues/7011), when syncs are canceled, it's possible to get a "messy" state on destinations where "zombie" _airbyte_tmp
tables are kept around. These temporary tables don't affect your actual data, but they might clutter your destination database. If you're concerned about these temporary tables, you may need to manually clean them up after canceling a job, but only do so when you're certain no syncs are currently running. Remember, while this method allows you to cancel a job without clearing destination data, it's always a good practice to monitor your syncs and ensure data integrity, especially when interrupting ongoing processes.