5 Replies Latest reply: Jan 20, 2010 12:08 PM by Vlad Gutkovsky RSS

    How to delete a document in 9.0 Access Point?

    James Phillips

      All,

      In our 8.5 Environment, we could delete a file already published through Public Data\AccessPoint Documents

       

      Now in 9.0, how can you delete the same file? E.g. you rename a distribution task and the new doc appears and the old one is still there

       

        • How to delete a document in 9.0 Access Point?
          Vlad Gutkovsky

          Simply put, the file is there because it exists in the server folder (i.e. whatever folder is defined in the QVS --> Folders tab). You can either manually delete it or remove all users' security permissions to the file, which would also result in it not being displayed in the AP. If the files are named logically, you can also write a batch script that would delete old files. I hope I understood your question correctly...

          Regards,

            • How to delete a document in 9.0 Access Point?
              James Phillips

              Vlad, what I mean is once the documents are published thru Publisher, eg 24 reduced docs with different names, I cannot figure out how to delete the Published docs stored in "QlikView AccessPoint".

                • How to delete a document in 9.0 Access Point?
                  Vlad Gutkovsky

                  Interesting question. I would do it like this:

                  1. Create a new mount in the AP. This mount will contain all the files that will be outputted daily, as well as all the files from the day before.
                  2. Go to QEMC --> System --> Supporting Tasks tab. Expand the tree and create a new External Program task with the following Command Line Statement: del "d:\test\*.*" /Q (where d:\test is replaced by the path to the mount created in Step #1). Give the task a name. Under the Triggers tab, create a Schedule trigger that will run the task on the same schedule as you are currently using to reduce & distribute documents. Save the task.
                  3. Modify your Publisher task to output the reduced files to the new mount.
                  4. Inside the Publisher task, click the Triggers tab. Delete the existing Schedule trigger, and add a new trigger that will run On Event From Another Task. Make the task run on Successful completion of the new task you created in Step #2.
                  5. If you would like Publisher to reduce and distribute the documents even if deletion of the files failed for some reason, create a second trigger that will make the task run on Failed completion of the above task.
                  6. Save the Publisher task.

                  That should do the trick--all the files from the previous day will be deleted before new ones are outputted.

                  Regards,