Delete A Algorithm