For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
DocsAPI Reference
Dashboard
LogoLogo
DocsAPI Reference
  • OCPPLAB Gateway API
        • GETList locations in a network
        • POSTBulk-create OCPI locations (durable)
        • GETGet bulk location-create job status
        • GETGet OCPI location
        • DELDelete OCPI location
        • PATCHUpdate OCPI location
OCPPLAB Gateway APIOCPIOcpi Locations

Delete OCPI location

||View as Markdown|
DELETE
https://host.com/ocpi/cpos/:cpo_id/locations/:location_id
DELETE
/ocpi/cpos/:cpo_id/locations/:location_id
1import requests
2
3url = "https://host.com/ocpi/cpos/cpo_id/locations/location_id"
4
5headers = {"Authorization": "Bearer <token>"}
6
7response = requests.delete(url, headers=headers)
8
9print(response.json())

Delete one OCPI location from the current organization. The location must belong to the supplied cpo_id, otherwise a 404 is returned.

Was this page helpful?
Previous

Get OCPI location

Next

Update OCPI location

Built with

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

cpo_idstringRequiredformat: "^\d+$"

CPO identifier — the stringified integer returned by POST /ocpi/cpos (backed by ocpp.partner_operations.id).

location_idstringRequired

Internal OCPI location identifier (ocpp.ocpi_locations.id).

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error