Confirm account deletion via emailed token
POST
/_torii/users/me/delete/confirm
const url = 'https://your-app.torii.so/_torii/users/me/delete/confirm';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-app.torii.so/_torii/users/me/delete/confirm \ --header 'Content-Type: application/json' \ --data '{ "token": "example" }'Validates the one-time token, atomically consumes it, and performs the soft delete.
Request Body required
Section titled “Request Body required ” Media type application/json
object
token
required
string
Example generated
{ "token": "example"}Responses
Section titled “ Responses ”OK