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

DELETE

The DELETE method on the root of the domain will delete record(s).

DELETE https://api.traverzer.tech/

Headers

Name
Value

Content-Type

application/json

Authorization

<token>

Body

Name
Type
Description

[Table Name]

string

Name of the table

[Table Name].[Field Name]

string

Value of the field

Request

fetch('https://api.traverzer.tech/', { 
    method: 'DELETE', 
    headers: { 
        'Content-Type': 'application/json',
        'Authorization': <token>
    }, 
    body: JSON.stringify({ 
        user: { 
            username: "johndoe"
        } 
    }) 
});

Response

No content is returned

{
  "error": "Invalid request"
}
{
  "error": "Not found"
}
{
  "error": "Server error"
}

Last updated 4 months ago