API Queries - Delete Domains
The delete_domains function removes domains from your Monetization AutoPilot account (up to 1,000 at a time - see note below). Additional parameters are required for this function.
- domains - The domain or domains to be removed from your account, comma separated (up to 1,000 per query - see note below). (Required)
Note: For larger queries (when removing more than 100 domains at a time), you MUST use a POST request to ensure you do not reach any request length limitations.
Note: Make sure to URL encode all values.
Example query and response:
In this example, we will delete the domains abc123.com, efg456.com and lmn789.net (domains=abc123.com,efg456.com,lmn789.net).
Note: This function will return the status "Success", even if the domains have already been deleted. Also note that domains are not completely removed from your account, they are moved to the "(Trash)" folder.
Note: If the domains have already been deleted from your account (they are in the "(Trash)" folder, you will not receive an error. This will be the response:
Note: If the domains specified do not exist in your account, you will not receive an error. This will be the response:
If many domains are being deleted and the task takes longer than 30 seconds a jobid will be provided. See the example below:
domain032.com,domain041.com,+ many more domains
You can then view the progress using the jobid with the Job Status function.
Possible error responses for this function are:
- 410 - No domain or domains parameter passed
- 500 - Job failed. Please contact support if problems persist.
- General errors, such as 200 - Internal Error or 300 - Username or password invalid.