Operations API
Leads
Delete Lead
this endpoint ( delete delete ) permanently removes a lead if the request succeeds, it will return the id of the lead that was removed permissions customers remove webhook event customer events docid\ vpxf3upxl n7gflcvvism eyou can also use delete customer docid\ vzcfasmuugpljrtuaisu8 and bulk delete docid\ y rl95tqzlr7tobmfuyzt when removing leads path parameters id the id of the lead to delete require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/leads/c5f3b078 5520 4694 a4d1 d45885a6314e") https = net http new(url host, url port) https use ssl = true request = net http delete new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" response = https request(request) puts response read bodyvar myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'delete', headers myheaders }; fetch("https //api tamio com/v2/leads/c5f3b078 5520 4694 a4d1 d45885a6314e", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));curl location request delete 'https //api tamio com/v2/leads/c5f3b078 5520 4694 a4d1 d45885a6314e' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'{ "status" 200, "id" "c5f3b078 5520 4694 a4d1 d45885a6314e" }