> Call POST /v1/check before a tool that writes. DENY means do not invoke the tool. For clean Markdown of any page, append .md to the page URL. For the complete index, fetch https://docs.withwrit.com/llms.txt.

# Retire a custom verb

DELETE https://api.withwrit.com/v1/verbs/{name}

API key required. Soft-deletes the verb: it becomes `deprecated`
and can never be reused or re-created, so old receipts stay
interpretable and the name stays reserved. Checks that name the
verb still resolve it (its policy still applies); new policies
reject it with the offending verbs listed. Writes a VERB_DELETE
receipt. Only live verbs can be retired (404 otherwise).


Reference: https://docs.withwrit.com/api-reference/custom-verbs/retire-a-custom-verb

## Servers

- `https://api.withwrit.com` (Writ gate, default)
- `https://j72ckh66ukck2kcbq3oiwxaalm0olxwb.lambda-url.us-east-1.on.aws` (Direct Lambda Function URL (fallback))

## Request

### Path parameters

- `name` (string, required) — The verb name; case-insensitive.

## Response

### 200

The retired verb record.

## Errors

### 401 Unauthorized Error

API key required — missing, malformed, or unknown key.

- `any`

### 404 Not Found Error

No such live custom verb in this tenant.

- `any`

### 409 Conflict Error

The verb was modified concurrently — fetch the manifest and retry.

- `any`

## Examples

**Response**

```json
{
  "aliasOf": null,
  "builtin": false,
  "createdAt": 1759000000,
  "deprecatedAt": 1759000200,
  "description": "Agent exported PHI outside the enclave",
  "name": "phi.export",
  "status": "deprecated"
}
```

**SDK Code**

```python Custom verbs_retireACustomVerb_example
import requests

url = "https://api.withwrit.com/v1/verbs/name"

response = requests.delete(url)

print(response.json())
```

```javascript Custom verbs_retireACustomVerb_example
const url = 'https://api.withwrit.com/v1/verbs/name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Custom verbs_retireACustomVerb_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.withwrit.com/v1/verbs/name"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Custom verbs_retireACustomVerb_example
require 'uri'
require 'net/http'

url = URI("https://api.withwrit.com/v1/verbs/name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
```

```java Custom verbs_retireACustomVerb_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://api.withwrit.com/v1/verbs/name")
  .asString();
```

```php Custom verbs_retireACustomVerb_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://api.withwrit.com/v1/verbs/name');

echo $response->getBody();
```

```csharp Custom verbs_retireACustomVerb_example
using RestSharp;

var client = new RestClient("https://api.withwrit.com/v1/verbs/name");
var request = new RestRequest(Method.DELETE);
IRestResponse response = client.Execute(request);
```

```swift Custom verbs_retireACustomVerb_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.withwrit.com/v1/verbs/name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```