Delete the agent

This API will delete the agent permanently from your account

Code

$http.delete("https://api.agenty.com/2.0/agents/{AgentId}?key={ApiKey}")
            .success(function (response) {
               console.log(response)
            }).error(function (response) {
               console.log(response) 
            });

Note : Use this API with cautions, because there is no backup once the agent is deleted .