Delete assets from editor scripts

I'm developing an Editor window tool. I use `AssetUtility.CreateAsset` to create my own custom objects derived from `ScriptableObject`. My question is, is there a way for my tool to delete such objects at a later stage? There doesn't seem to be an equivalent `AssetUtility.DeleteAsset`, for instance.

You do it through the `AssetDatabase` like so:

string pathToDelete = AssetDatabase.GetAssetPath(objToDelete);      
AssetDatabase.DeleteAsset(pathToDelete);