Properties & Listings
Delete a property
Delete a manually managed property record by its Ask Wire ID.
DELETE
/
api
/
assets
/
{assetId}
/
Delete a property
curl --request DELETE \
--url https://pandora.ask-wire.com/api/assets/{assetId}/ \
--header 'Api-Token: <api-key>'import requests
url = "https://pandora.ask-wire.com/api/assets/{assetId}/"
headers = {"Api-Token": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'Api-Token': '<api-key>'}};
fetch('https://pandora.ask-wire.com/api/assets/{assetId}/', 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://pandora.ask-wire.com/api/assets/{assetId}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Api-Token: <api-key>"
],
]);
$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://pandora.ask-wire.com/api/assets/{assetId}/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Api-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://pandora.ask-wire.com/api/assets/{assetId}/")
.header("Api-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pandora.ask-wire.com/api/assets/{assetId}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Api-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": "Assets successfully deleted."
}Overview
Permanently deletes a property record by its Ask Wireid. This is a hard delete — a subsequent GET on the same ID returns 404 with {"detail": "No Asset matches the given query."}. This cannot be undone.
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Api-Token | string | Yes | API token used to authenticate the request. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
assetId | integer | Ask Wire ID of the property to delete. |
Example request
curl -X DELETE "https://pandora.ask-wire.com/api/assets/4521/" \
-H "Api-Token: YOUR_API_TOKEN" \
Response
Returns a confirmation message, not the deleted record. Verified against a live response:{
"detail": "Assets successfully deleted."
}
| Field | Type | Description |
|---|---|---|
detail | string | Confirmation message. |
⌘I
Delete a property
curl --request DELETE \
--url https://pandora.ask-wire.com/api/assets/{assetId}/ \
--header 'Api-Token: <api-key>'import requests
url = "https://pandora.ask-wire.com/api/assets/{assetId}/"
headers = {"Api-Token": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'Api-Token': '<api-key>'}};
fetch('https://pandora.ask-wire.com/api/assets/{assetId}/', 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://pandora.ask-wire.com/api/assets/{assetId}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Api-Token: <api-key>"
],
]);
$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://pandora.ask-wire.com/api/assets/{assetId}/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Api-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://pandora.ask-wire.com/api/assets/{assetId}/")
.header("Api-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pandora.ask-wire.com/api/assets/{assetId}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Api-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": "Assets successfully deleted."
}