Delete a planet
This endpoint was used to delete planets. Unfortunately, that caused a lot of trouble for planets with life. So, this endpoint is now deprecated and should not be used anymore.
AuthorizationBearer <token>
JWT Bearer token authentication
In: header
Path Parameters
planetIdinteger
The ID of the planet to get
Format
"int64"
Response Body
curl -X DELETE "https://galaxy.scalar.com/planets/1"
fetch("https://galaxy.scalar.com/planets/1")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://galaxy.scalar.com/planets/1"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://galaxy.scalar.com/planets/1"
response = requests.request("DELETE", url)
print(response.text)
Empty
{
"type": "https://example.com/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "The resource you are trying to access does not exist."
}
How is this guide?