Skip to main content
DELETE
https://api.calmyx.com
/
v2
/
listings
/
by-coordinates
Delete Listing by Coordinates
curl --request DELETE \
  --url https://api.calmyx.com/v2/listings/by-coordinates \
  --header 'Authorization: <authorization>'
{
  "success": true,
  "message": "Listing deleted successfully",
  "new_listing_count": 1249,
  "deletions_used": 15,
  "deletions_max": 20
}

Overview

The Delete Listing by Coordinates API removes a specific listing using latitude and longitude coordinates. This is useful when you want to delete a listing but only have the coordinates, not the listing ID.
To obtain an API key, register for an account and subscribe to a plan.
Each plan has a permanent deletion limit (20% of max listings) to prevent abuse. Once you reach your deletion limit, you must upgrade to Enterprise for unlimited deletions.

Authorization

Authorization
string
required
Your API key for authentication

Query Parameters

lat
float
required
The latitude coordinate of the listing to delete (e.g., 37.7749)
lng
float
required
The longitude coordinate of the listing to delete (e.g., -122.4194)
{
  "success": true,
  "message": "Listing deleted successfully",
  "new_listing_count": 1249,
  "deletions_used": 15,
  "deletions_max": 20
}

Response Fields

FieldTypeDescription
successbooleanWhether the deletion was successful
messagestringConfirmation message
new_listing_countnumberUpdated total number of listings after deletion
deletions_usednumberTotal number of deletions used
deletions_maxnumberMaximum deletions allowed on your plan (-1 for unlimited)

Notes

  • Coordinates are matched with 6 decimal places of precision
  • If no listing exists at the specified coordinates, a 404 error is returned

Use Cases

  • Location-based deletion: Remove a listing when you know the address/coordinates
  • Integration with mapping tools: Delete listings based on map selections
  • Coordinate-based workflows: Manage listings using location data