Delete Function for attribute and attributeset