Delete
When you need to delete a record use the DELETE method on the root of the domain and specify either your own identifier or the Traverzer Key ( tvzr_key
). A delete will cascade down to all related children. So if a user
record with a username
of "johndoe" has an associated profile
record then the following request would delete both of those records.
Request
fetch('https://api.traverzer.tech/', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'Authorization': <token>
},
body: JSON.stringify({
user: {
username: "johndoe"
}
})
});
Last updated