Removed duplicate delete() function