Added delete_attribute function