Delete an alias
DELETE
/v1/aliases/{name}
curl -X DELETE -H "X-Api-Key: $KEY" http://localhost:9027/v1/aliases/letterconst response = await fetch('http://localhost:9027/v1/aliases/letter', { method: 'DELETE', headers: { 'X-Api-Key': process.env.KEY },});if (!response.ok) throw new Error(await response.text());import os
import requests
response = requests.delete( "http://localhost:9027/v1/aliases/letter", headers={"X-Api-Key": os.environ["KEY"]},)response.raise_for_status()package main
import ( "io" "log" "net/http" "os")
func main() { request, err := http.NewRequest("DELETE", "http://localhost:9027/v1/aliases/letter", nil) if err != nil { log.Fatal(err) } request.Header.Set("X-Api-Key", os.Getenv("KEY"))
response, err := http.DefaultClient.Do(request) if err != nil { log.Fatal(err) } defer response.Body.Close() if response.StatusCode >= 300 { message, _ := io.ReadAll(response.Body) log.Fatalf("%s: %s", response.Status, message) }}Deletes an alias and its history. The templates it named stay. Setting it again starts at version 1.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”name
required
string
The alias
Responses
Section titled “Responses”Deleted
This caller has no such alias
Media typeapplication/json
The JSON body of every error response.
object
error
required
A stable, machine-readable kind.
string
message
required
What went wrong, for a person.
string
Example
{ "error": "invalid_request", "message": "unknown step 'teleport'"}RUSTICDOC_STORE is not set
Media typeapplication/json
The JSON body of every error response.
object
error
required
A stable, machine-readable kind.
string
message
required
What went wrong, for a person.
string
Example
{ "error": "invalid_request", "message": "unknown step 'teleport'"}The store cannot be reached
Media typeapplication/json
The JSON body of every error response.
object
error
required
A stable, machine-readable kind.
string
message
required
What went wrong, for a person.
string
Example
{ "error": "invalid_request", "message": "unknown step 'teleport'"}