Implemented post delete function

Also gives an alert on posts page