Self Destructing Onion Services Remotely

Is it possible thru the control port to destroy all hidden services after certain conditions? Such failure to restart tor on the server within 90 days. If unable to be accomplished thru Tor directly I’m open to any non Javascript programming language to accomplish this.