Removing parked domains via API
Hello,
Can I use whmapi1 & uapi to list and remove parked domains?
-
sample:
# SSL installation
setup_ssl() {
# Deleting existing SSL
echo -e "${cyan}🔒 Deleting existing SSL...${nc}"
if uapi --output=jsonpretty --user=$userssl SSL delete_ssl domain="$sitename"; then
echo -e "${green}✅ Existing SSL deleted!${nc}"
else
ask_continue "Deleting existing SSL"
fi0 -
Hey there! I would expect you to be able to use the https://api.docs.cpanel.net/openapi/whm/operation/delete_domain/ call to remove a domain from the system. Is that what you're looking for?
0
Please sign in to leave a comment.
Comments
2 comments