Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

drop qvd

Hello,

I am very new to Qlikview, can someone tell me how can i drop the qvd file using the script before loading the data on it.

Thanks in advance.

1 Solution

Accepted Solutions
michael_anthony
Creator II
Creator II

Use Execute cmd.exe /c

You have the /c with a \.

View solution in original post

16 Replies
Not applicable
Author

qvd is nothing but a table

drop table tablename;                here tablename is the qvd name which u have given

Anonymous
Not applicable
Author

Hi

If you want to delete the qvd from the folder

below is the code

vTempQVDPath = GetFolderPath()//Path of the QVD
EXECUTE cmd.exe /C del $(vTempQVDPath)\*.qvd;


you need ensure that "Can execute external programs" in script window attach.jpg


Regards

Harsha

maleksafa
Specialist
Specialist

if you just one to empty the qvd before loading new data in it, then there is no need to delete it, when loading data from a table into  a qvd it will override the existing information.

Not applicable
Author

Hi,

If you want to drop qvd which store table you can use

Drop table Qvd_tablename;( which table qvd creates)

or else if you want to delete the qvd from specified path use this

Execute cmd.exe /c del C:/file.qvd;

delete qvd's from folder by scirpt

Not applicable
Author

Hi All,

Thanks for your help.

I am trying to exetute the following command from my script but not able to delete the below qvd file.

Execute cmd.exe /c del D:\Abdul Kaleem\Qlikview testing\qvd\test_load.qvd

let me know if any changes required in the command.

Thanks!

michael_anthony
Creator II
Creator II

Try Execute cmd.exe /c del "D:\Abdul Kaleem\Qlikview testing\qvd\test_load.qvd";


Need quotation marks around the file name or else the spaces confuse cmd.exe statement.

Not applicable
Author

Hello Michael,

still not able to delete the file.


michael_anthony
Creator II
Creator II

What happens when you run the script?

jagan
Partner - Champion III
Partner - Champion III

Hi,

Generally in Qlikview QVDs are not deleted, everytime we will replace the existing QVDs not sure why you are trying to delete the QVD from Qlikview.

This is not a good practice, instead you can create a windows job to do this periodically.

Hope this helps you.

Regards,

Jagan.