Remove a domain from a project
remove_domainAsks to take a domain the person owns (such as www.acme.com) off a project, as the Remove button in the project's Domains settings does: the project stops answering there, whether the address was live or still waiting for its DNS record. Owners and admins of the project only. Nothing happens until you approve it in CodeGene: the answer gives a link to the request, which waits there for 15 minutes. Send the person that link; you cannot approve it. Then call get_approval with the requestId to learn how it ended. It does not change the domain's DNS records; the person keeps or removes those at the domain's provider.
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": {
"project_id": "<project_id>",
"hostname": "<hostname>",
"reason": "<reason>"
},
"name": "remove_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why, in a sentence: kept in the workspace's activity. | |
| hostname | Yes | The domain or subdomain to remove, such as www.acme.com. | |
| project_id | Yes | The project the domain is on (list_projects gives ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |