DELETE /api/servers/:server/transfer
Cancels an outgoing server transfer that is currently in progress.Path Parameters
The UUID of the server whose transfer should be cancelled
Response
Returns202 Accepted when the cancellation request is successfully processed.
Error Responses
Server is not currently being transferred
Example Request
cURL
JavaScript
Python
Example Response
DELETE /api/transfers/:server
Cancels an incoming server transfer that is currently in progress on the destination node.This endpoint is for cancelling incoming transfers, while the above endpoint cancels outgoing transfers. Use the appropriate endpoint based on whether you’re cancelling from the source or destination node.
Path Parameters
The UUID of the server whose incoming transfer should be cancelled
Response
Returns202 Accepted when the cancellation request is successfully processed.
Error Responses
Server is not currently being transferred
Example Request
cURL
JavaScript
Python
Example Response
Cancellation Behavior
When you cancel a transfer:Transfer Status Flow
Transfers go through these status states:- pending: Transfer created but not yet started
- processing: Archive is being created and/or streamed
- cancelling: Cancellation requested, cleanup in progress
- cancelled: Transfer successfully cancelled
- failed: Transfer failed due to an error
- completed: Transfer finished successfully
Status Checks
You cannot cancel a transfer that is:- Already in the
cancellingstate - Already
cancelled - Already
completed - Already
failed
409 Conflict error.
Monitoring Cancellation
You can monitor the cancellation through the server’s WebSocket connection:Use Cases
User Cancellation
User decides they no longer want to transfer the server
Error Recovery
Transfer is taking too long or encountering issues
Node Maintenance
Source or destination node needs to go offline
Resource Management
Free up bandwidth or resources for other operations
Related Endpoints
Initiate Transfer
Start an outgoing server transfer
Receive Transfer
Accept an incoming server transfer
