Skip to content
Deprecated
Operation ID: deletePlanet

Delete a planet

DELETE
/planets/{planetId}

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.

Authorizations

Parameters

Path Parameters

planetId*
Typeinteger
Required

Responses

No Content

Samples

cURL
curl -X DELETE https://galaxy.scalar.com/planets/{planetId}
JavaScript
fetch("https://galaxy.scalar.com/planets/{planetId}", { method: "DELETE" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://galaxy.scalar.com/planets/{planetId}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.delete("https://galaxy.scalar.com/planets/{planetId}")
print(response.json())
Powered by VitePress OpenAPI