---
raw: true
search:
  tags:
    - Spaces
    - DELETE
seo:
  description: >-
    Ends a pending transfer. The sending side withdraws, and the… Reference for
    the DELETE /v1/space-transfers/{transferId} endpoint in the Spacefast API.
sidebar:
  label: Cancel a space transfer
  badge: DELETE
title: Cancel a space transfer
type: openapi-operation
---
Ends a pending transfer. The sending side withdraws, and the receiving side declines. Both outcomes are `canceled`. You can cancel until the receiving side accepts.

`DELETE /v1/space-transfers/{transferId}`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "spaceId": "string",
    "from": {
      "principalType": "team",
      "principalId": "string"
    },
    "to": {
      "principalType": "team",
      "principalId": "string"
    },
    "status": "pending_confirmation",
    "expiresAt": "2019-08-24T14:15:22Z",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
```
