Removing components of defined structure