Delete the schedule

This API will remove the schedule of given agent id

Code

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