Customer Support
Trillion Direct Search Network
API Manual
API Queries - Delete Folder
The delete_folder function deletes a folder. All keywords must be removed from a folder before it can be deleted.
Additional Parameters
- folder - Folder to be deleted. Does not accept multiple folders. (Required)
Example query and response:
In this example, we will be deleting the folder "Credit Cards".
Example query:
http://bid.trellian.com/api.html?username=user&api_key=key&mode=delete_folder
&folder=Credit%20Cards
Response:
<results> <result Status="Deleted"/> </results>
The above response means that the folder was successfully deleted from the system.
Error Responses:
Possible error responses for this function are:
- 412 - Folder is a required argument for this mode.
- 420 - Folder could not be found.
- 421 - Folder name may only contain letters, digits or spaces.
- 426 - Folder cannot be deleted with campaigns inside.
- Other general errors, such as 200 - Internal Error or 300 - Username or API Key invalid.
For a complete list of error responses, see the Error Codes manual page.