Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

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
Contributor

Re: How to remove a .qvw file through a task?

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

DEL "C:\myApp.qvw"

Regards.

Not applicable

Re: How to remove a .qvw file through a task?

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
Contributor

Re: How to remove a .qvw file through a task?

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
New Contributor III

Re: How to remove a .qvw file through a task?

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

Community Browser