Implement proper deletion of attributes.