Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

qq wipe

The qq wipe command is used to delete working directories of qq jobs. It has no direct equivalent in Infinity.

Tip

It can be tricky to remember the difference between qq wipe and qq clear. This might be useful: Wipe affects the Working directory.

Description

Deletes the working directories of the specified qq jobs, or of all qq jobs in the specified directories.

qq wipe [OPTIONS] JOB_ID...

JOB_ID — One or more IDs of jobs whose working directories should be deleted. Optional.

If no JOB_ID and no directory are specified, qq wipe searches for qq jobs in the current directory.

By default, qq wipe prompts for confirmation before deleting the working directory for each job.

Without the --force flag, it will only attempt to delete working directories of jobs that have failed or been killed. When the --force flag is used, qq wipe attempts to wipe the working directory of any job regardless of its state, including jobs that are queued, running or successfully finished. You should be very careful when using this option as it may delete useful data or cause your job to crash!

Note

If the working directory matches the input directory, qq wipe will never delete it, even if you use the --force flag, to protect you from accidentally removing your data.

Options

  • -d, --dir — One or more directories to search for qq jobs in. Supports globs.

  • -y, --yes — Delete the working directory without confirmation.

  • --force — Delete the working directory of the job forcibly, ignoring its current state and without confirmation.

Examples

qq wipe 123456

Deletes the working directory of the job with ID 123456 located on the default batch server. If the job is located on a different batch server, you need to use the full ID including the server address.

Upon running the command, you will be prompted to confirm the termination by pressing y. This command only works if the specified job is a qq job with a valid and accessible info file, and the batch server must be reachable from the current machine.


qq wipe 123456 144844 156432

Deletes the working directories of the jobs 123456, 144844 and 156432. You will be asked to confirm each deletion individually.


qq wipe

Deletes the working directories of all suitable qq jobs whose info files are present in the current directory. You will be asked to confirm each deletion individually.


qq wipe 123456 -y

Deletes the working directory of the job with ID 123456 without asking for confirmation (assumes ‘yes’).


qq wipe 123456 --force

Forcefully deletes the working directory of the job with ID 123456. This deletes the working directory no matter the state of the job. This is dangerous — only use the --force flag if you are absolutely sure you know what you are doing!


qq wipe -d /path/to/dir

Deletes working directories of all suitable qq jobs whose info files are present in direcotry /path/to/dir. Asks for confirmation before deleting each working directory.


qq wipe -d /path/to/job* -y

Deletes working directories of all suitable qq jobs located in directories matching the glob pattern /path/to/job* (e.g., /path/to/job1, /path/to/job2, /path/to/job3) without asking for confirmation (assumes ‘yes’).