Delete a project
DELETE
https://api.ridgeline.run /v11/projects/{idOrName} Deletes the project and every deployment and domain attached to it. This cannot be undone.
Parameters
idOrNamestringpathrequiredThe project's id or name.
teamIdstringqueryThe team identifier to perform the request on behalf of.
slugstringqueryThe team slug to perform the request on behalf of.
Code samples
cURL
curl -X DELETE "https://api.ridgeline.run/v11/projects/{idOrName}?teamId=&slug="TypeScript
const res = await fetch('https://api.ridgeline.run/v11/projects/{idOrName}?teamId=&slug=', {
method: 'DELETE',
});
const data = await res.json();Python
import requests
res = requests.request(
"DELETE",
"https://api.ridgeline.run/v11/projects/{idOrName}?teamId=&slug=",
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("DELETE", "https://api.ridgeline.run/v11/projects/{idOrName}?teamId=&slug=", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.ridgeline.run/v11/projects/{idOrName}?teamId=&slug=');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://api.ridgeline.run/v11/projects/{idOrName}?teamId=&slug=')
req = Net::HTTP::Delete.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.ridgeline.run/v11/projects/{idOrName}?teamId=&slug="))
.method("DELETE", BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Responses
200 OK
{}400 One of the provided values is invalid.
403 You do not have permission to access this resource.
Updated
Was this page helpful?