how to delete excel file in qtp

Example -


Below code will delete a Excel file in QTP.

Set fo = createobject("Scripting.filesystemobject")
fo.deletefile("c:\xyz.xlsx")
set fo = nothing