Skip to Content
API reference

Delete an end user's data

DELETE
/v1/end-users/{end_user}

Deletes every generation of yours made with this end_user, each as DELETE /v1/generations/{id} does, with the uploads no other generation uses. No match is still 200 with zeros. One request deletes at most 500 generations: when more is true, send it again.

Authorization

apiKey
headerAuthorizationBearer <tf_...>

Your API key from API keys, sent as Authorization: Bearer $TENSORFACTORY_API_KEY. Keep it on your server.

Path Parameters

end_user*string

The end_user you sent when creating the generations.

Match^[A-Za-z0-9._:@-]{1,128}$

Response Body

What was deleted.

application/json
  1. response
deleted*
more*boolean

true when some are left: send the request again.

Example Request
curl -X DELETE 'https://tensorfactory.ai/v1/end-users/user_8f14e45f'
Example Response
{  "deleted": {    "generations": 12,    "uploads": 3  },  "more": false}