Cleaned up delete post code a little.