set attributes and delete recursively
version 2.2.3.0