Delete Previous Version
const url = 'https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/previous-version?expected_version_number=1';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url 'https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/previous-version?expected_version_number=1' \ --header 'Authorization: Bearer <token>'Delete the dataset’s previous version, so it can no longer be restored.
Refuses with 404 no_previous_version when there is none, 409
previous_version_changed when it is not expected_version_number,
409 previous_version_in_use while a view or foreign key elsewhere
reads its table, and 409 dataset_busy while a refresh, replacement or
restore is active.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Query Parameters
Section titled “ Query Parameters ”The previous version the caller confirmed deleting
The previous version the caller confirmed deleting
Responses
Section titled “ Responses ”Successful Response
Bad request — invalid payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks write access
Not found
Conflict — resource state prevents the operation
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “ Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request