Delete files from folder

Hello all.

I have such a question:
Is it possible to remove assemblies or part from the tree while deleting files from the current folder?

SolidworksApi/macros