remove dependencies from tree