Uninstall a script programatically

Is there a proper way to uninstall a script programmatically, so that it triggers the OnDeleteScript() event if the script implements it?

We'll add a command for that in the next update.