Replace keepdata option with deletedata