Removing Temporary AIQ Files

Issue: The AIQ temp folder occupies too much space in the AIQ Distribution Folder

Solution: Create a scheduled automatic ask that runs every day and deletes the folder and its contents.

Creating the Task

The following procedure is for Windows.

  1. Open the Task Scheduler app.

    1. Open the Task Scheduler app from the Windows Start menu.

    2. From the Windows Run dialog (Win + R to open) type in taskschd.msc, and press Enter.

  2. From the Action menu select Create a Basic Task.

  3. Name the task and enter a description (optional).

    Click Next.

  4. In the Trigger options select Daily.

  5. Click Next.

  6. In the Daily options set the starting date and time for your task.

  7. Click Next.

  8. In the Action options select Start a program.

  9. Click Next.

  10. Configure the following properties:

    1. Program/script: Enter cmd.exe

    2. Add arguments: Enter the following command which includes path with the folder that you want to delete. For example: /c rmdir /s /q "C:\AIQ\AIQ-4.9.3-76925\aiq_distribution\apctmpfiles".

  11. Click Next.

  12. Review your task settings and select. Open the Properties dialog for this task when I click Finish.

  13. Click Finish.

  14. In the Task Properties window confirm the following settings:

    1. In the General tab, make sure the task is set to run with the highest privileges if needed.

    2. In the Triggers tab, you can edit the trigger to repeat daily and set the time as per your preference.

    3. In the Actions tab, you can see the command that will be executed. It should be something like: cmd.exe /c rmdir /s /q "C:\AIQ\AIQ-4.9.3-76925\aiq_distribution\apctmpfiles"

  15. Click Save and Exit.

  16. Click OK to save the task.

This task will now run daily at the specified time and delete the folder you specified using the rmdir command with the /s (delete all subdirectories and files) and /q (quiet, no confirmation) options.