Is there a way to react to assets being deleted?

I have a custom import script for some textures where an associated material is automatically created upon import. I would also like to automatically delete associated materials if I decided to delete a texture, or even rename a texture. Is this kind of event scriptable in the editor?

AssetPostprocessor.OnPostprocessAllAssets should do the trick.