I know that Windows Sidebar Gadget API provides functionality beyond normal Javascript capabilities. Does it manipulate files? How?
I didn't find how to do it in the API Reference
Use System.Shell.RecycleBin.deleteItem method.
retVal = System.Shell.RecycleBin.deleteItem(
strItemToDelete
)