Delete a font
DELETE
/v1/fonts/{id}
curl -X DELETE -H "X-Api-Key: $ADMIN_KEY" \ "http://localhost:9027/v1/fonts/$FONT"const response = await fetch(`http://localhost:9027/v1/fonts/${process.env.FONT}`, { method: 'DELETE', headers: { 'X-Api-Key': process.env.ADMIN_KEY },});if (!response.ok) throw new Error(await response.text());import os
import requests
response = requests.delete( f"http://localhost:9027/v1/fonts/{os.environ['FONT']}", headers={"X-Api-Key": os.environ["ADMIN_KEY"]},)response.raise_for_status()package main
import ( "io" "log" "net/http" "os")
func main() { url := "http://localhost:9027/v1/fonts/" + os.Getenv("FONT") request, err := http.NewRequest("DELETE", url, nil) if err != nil { log.Fatal(err) } request.Header.Set("X-Api-Key", os.Getenv("ADMIN_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 a stored font. Takes an admin. It leaves this replica when this returns, and the others within the sync interval. Documents that name it fall back to another font.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
The font’s id, from GET /v1/fonts
Responses
Section titled “Responses”Deleted
Needs an admin
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'"}No such stored font
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'"}