Delete the previous version
const url = 'https://example.com/api/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/api/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/previous-version?expected_version_number=1' \ --header 'Authorization: Bearer <token>'Delete the dataset’s newest kept version, so it can no longer be restored.
Deprecated: use DELETE /previous-versions/{version_number}. Behaves
like it, and also refuses with 409 previous_version_changed when
expected_version_number is not the newest kept version.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Query Parameters
Section titled “ Query Parameters ”The newest kept version, which the caller confirmed deleting
The newest kept version, which 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