Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to remove a .qvw file through a task?

Hi all,

Does anybody know whether it's possible to remove a .qvw document with QV server triggered by an external event?

Thanks!

4 Replies
diegofcaivano
Partner - Creator
Partner - Creator

Have you tried creating a Supporting Task to execute a CMD command? Like:

DEL "C:\myApp.qvw"

Regards.

Not applicable
Author

Cheers for your answer. I tried this but it doesn't work. While executing the same command in the windows command window does work. Could this be an autorisation issue? Is there a way to view a logfile?

Thanks!

diegofcaivano
Partner - Creator
Partner - Creator

Hi Erik.

It could be an authorization issue, among other situations. Please check the user set to run QlikView Server services.

Also try creating a .cmd file with the command line, so the Supporting Task executes the file instead of trying to execute the command directly.

tombombadil
Contributor III
Contributor III

Hi,

be aware that the cmd will be executed on the Qlikview server.

C:\myApp.qvw

This is the C drive of the Qlikview server, not your local one.


Also like Diego mentioned, try to execute the command directly on the Qlikview Server as the user under the Qlikview service run. (Take a look at the services).

And maybe a DEL /F is necessary if the myApp.qvw file is read-only.

Try DEL /? for further help.

Hope this helps,

Tom