const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getpalm.com/v1/user/{user_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Deletes a user and their associated data. This performs a soft delete by default, setting the user status to deleted.
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getpalm.com/v1/user/{user_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Was this page helpful?