adds delete function for blogs