removing executable def from tree