Skip to main content

Removing parked domains via API

Comments

2 comments

  • Okkes Tas
    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"
    fi
    0
  • cPRex Jurassic Moderator

    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.