Removed duplicate delete function