delete two posts and add a java advice