Delete a wallet by id

Close one account by its identifier. You can only close your own account this way — the same thing as `DELETE /wallets/me`, addressed differently. Anything else comes back as `403`. Every session ends and every API key is revoked; objects the account owns are left where they are. Requires the `wallets.delete` permission.

DELETE
/wallets/{id}
AuthorizationBearer <token>

The access token returned after a successful sign-in, sent as Authorization: Bearer <access_token>.

It identifies the person and the organization they are working in, and it lasts about fifteen minutes. When it runs out, use their refresh token at POST /auth/refresh-token instead of asking them to sign in again.

In: header

Path Parameters

id*string

Identifier of the wallet to delete.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://api.dual.network/wallets/string"
{}
{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}

{
  "code": 16,
  "message": "no auth provided"
}

{
  "code": 7,
  "message": "forbidden"
}
{
  "code": 5,
  "message": "object not found"
}
{
  "code": 13,
  "message": "internal error"
}