tessera

Ends every share one account uploaded.

DELETE
/api/v1/admin/users/{id}/shares

Why this is not part of deleting the account

Removing an account and destroying what it uploaded are different acts. An operator clearing space wants this and not that; one removing a person who has left wants the reverse. Welding them together makes one impossible and the other a surprise.

It works on an account in any state, including one still in use. Reclaiming space from an active account should not require suspending it first.

Errors

401 when nothing was signed in, 403 when the caller may not delete every share or used a bearer token, 404 when no account has that identifier.

session
cookietessera_session<token>

Set by POST /auth/login. A browser sends it automatically; it is HttpOnly, so page scripts cannot read or set it.

id*string

Whose shares to end

Response Body

How many were ended

application/json
  1. response

How many shares an operation ended.

removed*integer

How many were still live and are now finished.

The bytes go as the reaper reaches them, so this is not how much space has come back.

Formatint64
Range0 <= value
curl -X DELETE 'https://example.com/api/v1/admin/users/string/shares'
{  "removed": 0}