Court documents show company created policy to delete emails which could be used against it in court.