Optimized the 'delete' function and added 'banish'