department-for-transport-public / D-TRO

Digital Traffic Regulation Orders (D-TRO)
MIT License
3 stars 1 forks source link

Deleting of D-TRO #43

Closed Karol-Kolenda closed 3 days ago

Karol-Kolenda commented 6 days ago

Quick question (not feature request):

Does the following action: D6 DELETE /v1/dtros/{id} Delete a D-TRO by D-TRO ID

completely remove D-TRO, so it will no longer be accessible through any queries or in history?

JHB9876 commented 3 days ago

On behalf of DfT:

The DELETE endpoint does support the deletion of a previously submitted D-TRO record. This is a soft delete, such that the record is flagged as deleted in the database.

SEARCH endpoint will not return a deleted D-TRO record.

The creation and deletion events of subsequently deleted D-TRO can be seen via the EVENTS endpoint.

The D-TRO service does not offer a capability to retrieve deleted records.

Karol-Kolenda commented 3 days ago

Thank you, that is very helpful.