MACRO/DRIVEWORKS Delete .DWG from specified folder

Hello Solidworks Community,

I am looking for a macro script that will allow me to delete all .dwg from a specified folder. I am using DriveWorks Solo to create DXF's of individual parts. When doing this, DriveWorks creates a .dwg then a .dxf from that .dwg. I would like part of the automated process to delete the .dwg after making the .dxf. This is for organization purposes, as the .dwg will never be used again. Any info/insight would be very appreciated.

TIA,

ZW

SolidworksApi macros