Remove file from assy using DM API?

Is there a way to remove a file from an assy using the Document Manager API? 

SolidworksApi/macros
Comments 2
DW
DW 2021-04-08

Alright, so the only way to remove a component from an assy is to open it in the SW API?

JB
JB 2021-04-08

I don't believe so.  You can change the reference to point to a file that does not exist, so that when the assembly is opened it will not be found.  However, the user will still be able to open the assembly in eDrawings or Large Design Review mode and see it.