Added deleteAttributes function