Fixed a bug in delete code.

Wasn't setting editToken there