Erase slot
POST/api/worktrees/:project_id/:number/erase
Deletes one worktree slot: ends the task or session holding it, removes the slot and asks its node to erase the directory, without refusing on occupancy. Requires worktree delete permission on the slot's project. Returns row_deleted, node_erased, the node's reason when the directory was left in place, and what was holding the slot.
Request
Responses
- 200
- 422
OK
Unprocessable content