Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikView forum consolidation is complete. Labels are now required. LEARN ABOUT LABELS
cancel
Showing results for 
Search instead for 
Did you mean: 
rgvavihs
Specialist
Specialist

Deleting qvd

   Hi All,

How do we delete the existing qvd in qlikview ?

Thanks in Advance

1 Solution

Accepted Solutions
bestofwest
Creator II
Creator II

See: QlikTip #30: How to delete existing QVD files via load-script

public function DeleteFile(filePath)

   Set objFSO = CreateObject("Scripting.FileSystemObject")

   Dim retVal 'as Boolean

   If objFSO.FileExists(filePath) Then

      Call objFSO.DeleteFile(filePath)

      retVal = true

   Else

      Set objFSO = nothing

      retVal = false

   End If

   DeleteFile = retVal

end function

View solution in original post

5 Replies
maxgro
MVP
MVP

t2: load rowno() as id autogenerate 100;

store t2 into t2.qvd (qvd);

EXECUTE cmd.exe /c del /q t2.qvd;

rgvavihs
Specialist
Specialist

Thanks for your reply @Massimo Grossi !!!! And i am expecting few more solutions

bestofwest
Creator II
Creator II

See: QlikTip #30: How to delete existing QVD files via load-script

public function DeleteFile(filePath)

   Set objFSO = CreateObject("Scripting.FileSystemObject")

   Dim retVal 'as Boolean

   If objFSO.FileExists(filePath) Then

      Call objFSO.DeleteFile(filePath)

      retVal = true

   Else

      Set objFSO = nothing

      retVal = false

   End If

   DeleteFile = retVal

end function

View solution in original post

rgvavihs
Specialist
Specialist

thanks Antonia Caria

rgvavihs
Specialist
Specialist

Posts of  Massimo ,Antonio works good

Thanks