Q:

Calling a plugin function after an entry is deleted?

Is there a way to call a custom function after an entry is deleted successfully?
If there isn't, is there a record of the deleted record stored anywhere?
Currently, I am thinking of editing the actionPerformAction in elementIndexController, but I don't want to edit the application files, so if there is another method I would prefer that.

A:

You can create a simple plugin that listens to the onDeleteEntry event.
There is an entry parameter passed into that event that is the EntryModel object that represents the entry that was just deleted.

