Uncommenting delete code as deleting now works fine