curl --request DELETE \
--url https://api.example.com/pois/{id}{
"message": "POI 5 deleted sucessfully"
}
Remove a point of interest from the catalog
curl --request DELETE \
--url https://api.example.com/pois/{id}{
"message": "POI 5 deleted sucessfully"
}
DELETE /pois/{id}
curl -X DELETE https://api.maytravel.com/pois/5
const response = await fetch('https://api.maytravel.com/pois/5', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json'
}
});
const result = await response.json();
import requests
response = requests.delete('https://api.maytravel.com/pois/5')
result = response.json()
{
"message": "POI 5 deleted sucessfully"
}
{
"error": "POI not found"
}
backend/src/components/poi_catalog/controller/PoisController.mjs:25
The endpoint removes the POI record from the poi_catalog table based on the provided ID.