delete attributes and search