Adds delete method to post class