Removed unneeded delete code