Traverzer
  • About
  • Basics
    • Insert & Update
    • Fetch & Find
    • Delete
  • Reference
    • PUT
    • POST
    • DELETE
Powered by GitBook
On this page
Edit on GitHub
  1. Basics

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 4 months ago