Delete Vault Integration
curl --request DELETE \
--url https://api.example.com/vault-integrations/{id}import requests
url = "https://api.example.com/vault-integrations/{id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.example.com/vault-integrations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/vault-integrations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/vault-integrations/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.example.com/vault-integrations/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/vault-integrations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyCredentials & Vault
Delete Vault Integration
Delete a vault integration. Every credential that references it is removed as well.
DELETE
/
vault-integrations
/
{id}
Delete Vault Integration
curl --request DELETE \
--url https://api.example.com/vault-integrations/{id}import requests
url = "https://api.example.com/vault-integrations/{id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.example.com/vault-integrations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/vault-integrations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/vault-integrations/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.example.com/vault-integrations/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/vault-integrations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyOverview
Deletes a vault integration owned by the caller. Every credential record that references this integration is cascaded and removed — any subsequentauthenticate task action that pointed at those credentials will fail. The secrets inside your vault are not touched.
Path Parameters
string
required
Integration ID (UUID).
Example Request
curl -X DELETE "https://api.scrapengine.io/api/v1/vault-integrations/5f8c6a74-5f2e-4f5a-9e58-5b9c3c7d2a11" \
-H "Authorization: Bearer $SCRAPENGINE_API_KEY"
await fetch(
"https://api.scrapengine.io/api/v1/vault-integrations/5f8c6a74-5f2e-4f5a-9e58-5b9c3c7d2a11",
{
method: "DELETE",
headers: { "Authorization": `Bearer ${process.env.SCRAPENGINE_API_KEY}` },
},
);
import requests
requests.delete(
"https://api.scrapengine.io/api/v1/vault-integrations/5f8c6a74-5f2e-4f5a-9e58-5b9c3c7d2a11",
headers={"Authorization": f"Bearer {SCRAPENGINE_API_KEY}"},
)
Response
Success Response (204)
Empty body. Referencing credentials are removed atomically.Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — invalid or missing API key. |
404 | Integration not found or not owned by the caller. |
Was this page helpful?