Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Chilkat.Http http = new Chilkat.Http();
bool success;
http.BasicAuth = true;
http.Login = "{{secretId}}";
http.Password = "{{secretPassword}}";
Chilkat.HttpResponse resp = http.QuickRequest("DELETE","https://domain.com/api/recurring-expenses/:id/");
if (http.LastMethodSuccess == false) {
Debug.WriteLine(http.LastErrorText);
return;
}
Debug.WriteLine(Convert.ToString(resp.StatusCode));
Debug.WriteLine(resp.BodyStr);
Curl Command
curl -X DELETE
-u '{{secretId}}:{{secretPassword}}'
https://domain.com/api/recurring-expenses/:id/
Postman Collection Item JSON
{
"name": "Destroy",
"request": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{baseUrl}}/api/recurring-expenses/:id/",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"recurring-expenses",
":id",
""
],
"variable": [
{
"key": "id",
"value": null
}
]
},
"description": "Delete a specific recurring expense from your Belvo account."
},
"response": [
]
}