> For the complete documentation index, see [llms.txt](https://support-v3.protern.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support-v3.protern.io/performance/clean-up-runs.md). Agents can also search and read this documentation through its [MCP server](https://support-v3.protern.io/~gitbook/mcp).

# Clean up a quantriq's runs

Delete inspections and slips from a quantriq, mark runs valid or invalid, and restore deleted runs, one run at a time or many at once.

A quantriq (course) finds every pass through its splits, including inspections and slips that weren't training runs. Clean them up so the run counts, the fastest run and the gaps show the training as it was. You can delete runs, mark them valid or invalid, and restore runs you deleted.

The coach who created the quantriq and the coaches it is shared with can clean up its runs. Athletes on a coach's quantriq can select runs to compare them, but can't change them.

## Delete or mark invalid?

Run counts in Protern are the number of times down the course. So:

* **Delete** a run that you wouldn't call a training run: an inspection, a slip, or a lift ride that crossed the splits. Its data is no use, so remove it.
* **Mark invalid** a training run that went wrong: a missed gate, a crash, or a stop partway down. It was still a training run, so keep it and its data. It stays in the table, but it isn't ranked and can't be the fastest run. Invalid runs are useful too: they show each athlete's clean rate.

{% hint style="info" %}
On many training days the first run is an inspection. Delete it so it doesn't count as a run.
{% endhint %}

## Select the runs

1. On the quantriq's **Results** tab, tick the checkbox beside each run.
2. To select every run on the table, tick the checkbox in the table heading, beside **Athlete**.

A bar appears at the bottom of the page, such as "3 runs selected", with **Actions**, **Compare Runs** and **Clear**.

To clean up one kind of run, narrow the table first, then select them all. For example, in **Filters**, tick **DSQ Type** > **Athlete stopped**, or type an athlete's name in **Search athletes**. The heading checkbox then selects only the runs left on the table. See [Filter, search and group results](https://support-v3.protern.io/performance/filter-and-group-results.md).

Here the table is narrowed to **Athlete stopped**, and the heading checkbox selects its 4 runs:

<figure><img src="https://4270367905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6SGSifxeGmN6hrOQ4TPj%2Fuploads%2Fgit-blob-19ac5dbcd5d25d1c3213b699f749d3032a8423f8%2Fperformance-clean-up-runs-select.png?alt=media" alt="The DSQ: Athlete stopped chip, the heading checkbox outlined and ticked, and the bar: 4 runs selected, Actions, Compare Runs."><figcaption></figcaption></figure>

Good to know:

* The heading checkbox selects every run that matches your filters and search, including runs further down that haven't loaded yet. It never selects a run your filters hide.
* When the table is grouped, each group's heading has its own checkbox. Once you select a whole group, the bar offers **Select all 73 matching runs** to select every matching run in every group.
* Runs stay selected when you change the filters. If some are now hidden, the bar says so, such as "8 runs selected · 1 hidden by filters". Any action on the bar includes the hidden runs.
* Clicking the heading checkbox again clears only the runs on the table. **Clear** on the bar clears everything.
* With the keyboard, press Tab until a row is highlighted. Space selects or clears it, and the Up and Down arrows move between rows.
* After a filter or search change, **Actions** is greyed out for about a second while Protern checks which selected runs are hidden. If that check fails, the bar says "Could not check which selected runs the filters hide." Click **Try again**.

Grouped by **Athlete**, with one athlete's group ticked:

<figure><img src="https://4270367905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6SGSifxeGmN6hrOQ4TPj%2Fuploads%2Fgit-blob-3a997c1df5f00763779a26ce54f3432f33e26167%2Fperformance-clean-up-runs-group-select.png?alt=media" alt="Grouped by Athlete, Anne-Sophie Pelletier&#x27;s group ticked, and the bar: 7 runs selected, Select all 73 matching runs outlined."><figcaption></figcaption></figure>

## Mark runs valid or invalid

1. Select the runs.
2. On the bar, click **Actions**.
3. Click **Mark selected as Invalid** or **Mark selected as Valid**.

A message confirms the change, such as "2 runs marked invalid; 1 was already invalid". There is no confirmation step.

Good to know:

* **Mark selected as Invalid** gives a run the label **Marked invalid**. Runs that Protern already flagged keep their own label, such as **Slow run**.
* **Mark selected as Valid** makes a flagged run count again. Protern won't flag it again. To mark one flagged run valid, you can also open its row and click **Mark as Valid**.
* If you mark a run valid and then invalid, it reads **Marked invalid**, not its first flag.

<figure><img src="https://4270367905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6SGSifxeGmN6hrOQ4TPj%2Fuploads%2Fgit-blob-29c8d9ca76c0e865f125f170139a6b0ed0a71caf%2Fperformance-clean-up-runs-actions.png?alt=media" alt="The selection bar at the bottom of the Results tab with Actions open: Mark selected as Valid, Mark selected as Invalid and Delete selected runs."><figcaption></figcaption></figure>

## Delete runs

1. Select the runs.
2. On the bar, click **Actions** > **Delete selected runs**.
3. Check the confirmation, then click **Delete**.

The confirmation says how many runs will be deleted, such as "2 runs will be deleted from this quantriq. You can restore them from Deleted runs." If some of the selected runs are hidden by your filters, it says how many.

The confirmation:

<figure><img src="https://4270367905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6SGSifxeGmN6hrOQ4TPj%2Fuploads%2Fgit-blob-a27e5479dc782670ef915a5863a7b31809fd2dc0%2Fperformance-clean-up-runs-delete-dialog.png?alt=media" alt="Delete selected runs: 4 runs will be deleted from this quantriq, a note on delete or mark invalid, then Cancel and Delete."><figcaption></figcaption></figure>

A message, such as "2 runs deleted", confirms it. The runs leave the table within a few seconds.

To delete one run, you can also open its row, then click **More actions** (the three dots) > **Delete Run** > **Confirm**. No message shows; the run leaves the table within a few seconds.

The run's **More actions** menu:

<figure><img src="https://4270367905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6SGSifxeGmN6hrOQ4TPj%2Fuploads%2Fgit-blob-f8a0eb5eb67f956a80e307a8f9af4e88e04a6f2b%2Fperformance-clean-up-runs-delete-run.png?alt=media" alt="A run&#x27;s breakdown with Add to Comparison, View Athlete, and its More actions menu open on Delete Run."><figcaption></figcaption></figure>

Good to know:

* Deleting a run removes it from this quantriq only. The athlete's Activity and their other quantriqs keep it.
* A deleted run stays deleted. Protern won't add it back when more data arrives or when you edit the quantriq.
* The athlete's later runs are numbered again: their Run 4 becomes Run 3.
* A deleted run's note and any **Mark as Valid** or **Marked invalid** are lost. If you restore the run, it comes back without them.
* You can select up to 500 runs for one action. With more selected, **Actions** is greyed out, with the message "Select at most 500 runs for bulk actions".

## Restore deleted runs

1. On the **Results** tab, click **Filters**.
2. At the foot of the panel, click **Deleted runs (2)**.
3. Tick the runs to restore, or tick the heading checkbox to select them all.
4. Click **Restore 2 runs**.

The **Deleted runs** window, with a run ticked:

<figure><img src="https://4270367905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6SGSifxeGmN6hrOQ4TPj%2Fuploads%2Fgit-blob-ecabe7811f37a77214f11f68d9f1a63d67db3553%2Fperformance-clean-up-runs-deleted-runs.png?alt=media" alt="Deleted runs with Félix Ouellet&#x27;s run ticked: Athlete, Date, Start, Time, Deleted by, Deleted on, and Restore 1 run outlined."><figcaption></figcaption></figure>

The message "2 runs restored. They reappear in the results once processing finds them." confirms it. The runs come back to the table on their own, usually within 30 seconds.

Once the last deleted run is restored:

<figure><img src="https://4270367905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6SGSifxeGmN6hrOQ4TPj%2Fuploads%2Fgit-blob-cf2b7c6ab94214ea0f6ee6be671fd7dfb910d33f%2Fperformance-clean-up-runs-restored.png?alt=media" alt="The message 1 run restored. It reappears in the results once processing finds it, over Deleted runs: No deleted runs."><figcaption></figcaption></figure>

The **Deleted runs** window lists the most recently deleted runs first, with:

* **Athlete**: whose run it was. Not shown on a quantriq with one athlete.
* **Date** and **Start**: the day and time the run started.
* **Time**: the time between the run's first and last splits.
* **Deleted by** and **Deleted on**: who deleted it, and when. Hover the date for the exact time.

Good to know:

* **Deleted runs** shows in **Filters** only when the quantriq has a deleted run.
* Deleted runs are kept until you restore them, with no time limit. They go for good if the quantriq is deleted or the athlete's Activity is deleted.
* If you remove an athlete from the quantriq and add them back, their deleted runs come back as normal runs.
* A restored run is found again from the athlete's Activity and measured against the quantriq as it is now. If you changed the splits or the dates since you deleted it, it can come back different, or not at all. No message says so.
* If a restored run doesn't come back, check for another deleted run at the same time and restore it too.
* When every deleted run is restored, the window says "No deleted runs".
* The restored run takes back its run number, and the athlete's later runs are numbered again.
* You can restore up to 500 runs at a time. With more than 100 deleted runs, click **Load more** to see the rest.

## Messages you might see

| Message                                                      | What it means                                                            |
| ------------------------------------------------------------ | ------------------------------------------------------------------------ |
| "All 4 selected runs were already invalid. Nothing changed." | The runs were already invalid.                                           |
| "The selected runs could not be updated. Please try again."  | Nothing was changed. Your runs are still selected, so you can try again. |
| "Could not select all runs. Try again."                      | The selection didn't change. Tick the heading checkbox again.            |
| "These runs could not be restored. Try again."               | The runs are still deleted. Restore them again.                          |
| "Deleted runs could not be loaded."                          | The list didn't load. Click **Try again**.                               |

## Related

* [Flagged runs and DSQ detection](https://support-v3.protern.io/performance/flagged-runs.md)
* [Filter, search and group results](https://support-v3.protern.io/performance/filter-and-group-results.md)
* [Read quantriq results](https://support-v3.protern.io/performance/quantriq-results.md)
