Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2022, LIVE in Denver CO., May 16-19, 2022. REGISTER NOW TO RECEIVE EARLY BIRD PRICING
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
Author

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
Author

thanks Antonia Caria

rgvavihs
Specialist
Specialist
Author

Posts of  Massimo ,Antonio works good

Thanks