May this account be deleted here — and if not, why
const url = 'https://beta-api.plune.ai/v1/me/deletion';const options = {method: 'GET', headers: {cookie: 'plune_session=<plune_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://beta-api.plune.ai/v1/me/deletion \ --cookie plune_session=<plune_session>Account → Profile, the Danger zone (#952, api.ts → getDeletionCheck): read before anyone presses, so the page shows the button, or instead of it the reason, and the dialog says which companies would go with the account. refusal is null when the account may be deleted. application_owner: the account owns the application, and deleting it would leave nobody to own it. last_owner: the person is the owner of projects (personal or a company’s) or companies where other people work — each listed with everybody in it counted, oldest first; handing ownership over in each lifts it. companies: the companies nobody but the person is in, which go to the Bin with the account; projects: the projects of other companies nobody but the person is in, which go too (#1463). Session-only.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Whether the account may be deleted
object
null when the account may be deleted.
object
last_owner only.
A project or a company the person is the last owner of while other people work in it (#952).
object
Everybody in it, the person included — live accounts only (one in the Bin is nobody); a company counts its members and the people of its live projects, once each.
last_owner only.
A project or a company the person is the last owner of while other people work in it (#952).
object
Everybody in it, the person included — live accounts only (one in the Bin is nobody); a company counts its members and the people of its live projects, once each.
The companies that would go to the Bin with the account, oldest first.
A company nobody but the person is in — no other member, nobody else in any of its live projects; an account in the Bin is nobody (#952). It goes to the Bin with the account, its live projects with it, under the account’s stamp.
object
Its live projects, which go with it.
The projects of other companies that would go to the Bin with the account, oldest first (#1463).
A project of a company that stays, nobody but the person in it; an account in the Bin is nobody (#1463, operator 26.10.2026). It goes to the Bin with the account, as a personal project the person is alone in does.
object
object
Example
{ "refusal": { "code": "last_owner", "projects": [ { "id": "3f6c1a2e-8b7d-4c1e-9a0f-5d2e7b4c9a11", "name": "checkout", "people": 3 } ], "companies": [ { "id": "9b2d4e6f-1a3c-4b5d-8e7f-0a1b2c3d4e5f", "name": "Acme QA", "people": 7 } ] }, "companies": [ { "id": "5c7e9a1b-3d5f-4a6b-8c9d-1e2f3a4b5c6d", "name": "Side project", "projects": 2 } ], "projects": [ { "id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f01", "name": "spike", "company": { "id": "9b2d4e6f-1a3c-4b5d-8e7f-0a1b2c3d4e5f", "name": "Acme QA" } } ]}No / invalid session