const options = {method: 'DELETE', headers: {'x-organization-id': '<x-organization-id>'}};
fetch('https://api.dcycle.io/v2/imports/sessions/{import_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Delete a non-submitted import session and all its cached data.
const options = {method: 'DELETE', headers: {'x-organization-id': '<x-organization-id>'}};
fetch('https://api.dcycle.io/v2/imports/sessions/{import_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}