Hello
Is it possible to delete a pod from an account on the Community Solid Server through their JSON API? I tried the following code but this returns a statuscode 500.
const podIdToDelete = '...'
const podUrl = '.../${podIdToDelete}'
res = await fetch(podUrl, {
headers: {
authorization: `CSS-Account-Token ${authorizationValue}`,
'content-type': 'application/json'
},
method: 'DELETE'
})
data = await res.json()
console.log(`Pod deleted: `, data)
Output:
Pod deleted: {
name: 'InternalServerError',
message: 'Received unexpected non-HttpError: Unexpected end of JSON input',
statusCode: 500,
errorCode: 'H500',
details: {}
}
Is it even possible to delete a pod from an account or do you need to delete the entire account?
I also noticed the webId linked to the pod can be deleted in the GUI on my localhost:3000. What would happen with the pod if I deleted the only webId linked to it?
Thanks in advance!