delete atom func