Delete a task
The resourceSlug is a url parameter of the teamId associated with the user. Anywhere the resourceSlug is used can be interpreted as a teamId
the taskId of the agent that will be deleted
Successful operation, redirect to '/{resourceSlug}/tasks'. (this needs to be modified to correctly display dynamicResponse)
Server response after successsfully adding a new object