Here is how I've implemented it:

```
add_action( 'delete_post', array( 'MyClassName', 'delete' ) );

```

In the delete function I was using a $wpdb->insert command to see whether the function gets called. But I see that the $wpdb->insert command is called twice (inserts two rows in my table). Any ideas as to why something like this might happen? 

I've also attempted to use the before\_delete\_post hook since it doesn't really make a difference to me but I get the same outcome.

EDIT:

It seems as though the delete function is called for each entry in the wp\_posts table for some reason. So if the post has 3 revisions, the delete function will be called 4 times (the original post + 3 revisions). This is really weird behavior.