delete_allocation
Remove unused port allocations from Pterodactyl nodes to free up network resources and maintain clean server configurations.
Instructions
Delete a port allocation from a node (admin action). Cannot delete allocations that are in use by a server. Use list_allocations to find the allocation_id. Requires Application API key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"node_id": "<node_id>",
"allocation_id": "<allocation_id>"
},
"name": "delete_allocation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | Node ID that owns the allocation (from list_nodes) | |
| allocation_id | Yes | Allocation ID to delete (from list_allocations) |