Platform: Data retention

Platform: Data retention

Overview

Use this page to review and adjust data retention windows for each product. Data retention is the number of days a product keeps its completed runs, artifacts, logs and screenshots before a background cleanup job deletes them. Without a window, run history and captured files would grow without limit; retention settings balance how long results stay available for troubleshooting against the storage they use.

This page sits downstream of every product that produces run data: API Testing, Functional Testing, Load Testing and End-to-End Monitoring generate the runs, artifacts and screenshots these settings remove. Each product's run history page is where that data is created and reviewed; this page only decides how long it survives. A load test's InfluxDB measurements follow a separate per-bucket window on the appliance's Services page, not here.

On the page itself, you switch between four parts, one per licensed product: API Testing, Functional Testing, Screenshots and Test runs. Each part has its own fields, and appears only if your license includes that product. Test runs is the exception: load test runs have no automatic cleanup, so you delete old runs manually with a dedicated button.

Key concepts

  • part - One of the four product-specific tabs on this page (API Testing, Functional Testing, Screenshots, Test runs). Each part has its own retention fields and its own permission, and only appears if the appliance's license includes that product.
  • background cleanup - The automated job that permanently deletes a product's runs, artifacts, logs or screenshots once they are older than the configured retention value.
  • InfluxDB retention - A separate, per-bucket age-based removal of a load test's time-series measurements and counters, stored in InfluxDB. It is set on the appliance's Services page, not on this page. (related: Platform: Appliance)
  • Screenshot storage - The page where what is captured, the image format, per-run limits, cleanup frequency and backups for screenshots are configured. This page only controls how many days those screenshots are kept. (related: Platform: Screenshot storage)
  • run history - The stored list of a product's completed test runs, including their records, results and logs. This page's retention fields decide how long each run stays in that history before cleanup removes it. (related: Load Testing: Test runs)

When to use it

  • Storage on the appliance is growing and you need to shorten how long a product keeps runs, artifacts or screenshots.
  • You need to confirm how many days of API Testing, Functional Testing or E2E monitoring history are kept before cleanup removes it.
  • You need to check whether a product's retention settings are available at all, since a part only shows when the appliance's license includes it.
  • You want to manually purge old load test runs instead of waiting on the newest-10,000-runs history limit.
  • You need to find where InfluxDB bucket retention for load test time-series data is configured.
  • You're investigating a failed run and want to confirm its artifacts, logs or screenshots haven't already aged out.

Before you begin

  • Your account has permission to view and change Platform setup pages, since Data retention is reached via Operate > Platform > Setup.
  • At least one run exists for the product you want to review, created via Load Testing: Run test, API Testing: API flows, Functional Testing: Packages or End-to-End Monitoring setup.
  • To use Delete old runs on the Test runs part, your account has permission to delete load test run history.
  • You know which products your appliance is licensed for; a part only appears when its module is included in the license.

Common workflows

Shorten a product's retention window to free storage

Persona: Platform admin managing appliance storage

  1. Open the Data retention page and select the part for the product using the most storage, for example the Functional Testing tab.
    • Expect: The panel switches to that product's retention fields, showing their current day values.
  2. Lower the Screenshot and artifact retention (days) value toward the low end of its 1-3650 day range.
    • Expect: The field shows the new, smaller number of days.
  3. Click Refresh to confirm the lowered value is still shown.
    • Expect: The field reloads with the value you set, confirming it was saved.

Verify: The next background cleanup pass removes screenshots, artifacts and raw results for runs older than the new, shorter window, reducing the data that product keeps.

Manually purge old load test runs

Persona: Platform admin with permission to delete load test run history

  1. Open the Data retention page and select the Test runs tab.
    • Expect: The panel switches to Test runs, showing Delete runs older than (days) and a Delete old runs button.
  2. Set Delete runs older than (days) to the age threshold you want to purge.
    • Expect: The field shows your chosen number of days.
  3. Click Delete old runs.
    • Expect: A confirmation prompt opens asking you to confirm the deletion before anything is removed.
  4. Confirm the prompt.
    • Expect: The load test runs older than your threshold, along with their results and measurements, are permanently deleted; their screenshots are removed according to the Screenshots part's settings.

Verify: Opening the load test run history shows no runs older than the threshold you set, while newer runs are still listed.

Steps

Step 1

Open the Data retention page.

Expected result: The page opens on the API Testing tab, showing the API Testing Retention panel with Cleanup Interval (hours), Run Retention (days) and Artifact Retention (days) fields set to their current values.

API Testing is the first part the page offers, giving you a starting point to review before switching to another product.

  • Cleanup Interval (hours) controls how often the background cleanup runs, defaulting to 6.
  • Run Retention (days) and Artifact Retention (days) default to 180 and 30 days.
  • The Refresh button reloads the saved values for this part. Platform: Data retention - step 1

Step 2

Select the Functional Testing tab.

Expected result: The panel switches to Functional Testing retention, showing Run retention (days), Screenshot and artifact retention (days) and Log retention (days), defaulting to 180, 30 and 30 days.

Functional Testing has its own independent retention settings, separate from API Testing.

  • Each field's inline help states its allowed range, 1-3650 days, and its default.
  • A run still in progress is never deleted, regardless of these values. Platform: Data retention - step 2

Step 3

Select the Screenshots tab.

Expected result: The panel switches to Screenshot retention, showing Load-test screenshot retention (days) set to 30, E2E monitoring screenshot retention (days) set to 14, and a Screenshot storage link.

Screenshot retention is shared across load tests and End-to-End Monitoring sessions, so it has its own part separate from each product's run and log retention.

  • A deleted screenshot is counted but its result row is kept, so test results never depend on it.
  • The Screenshot storage link leads to capture format, per-run limits, cleanup frequency and backup settings. Platform: Data retention - step 3

Step 4

Select the Test runs tab.

Expected result: The panel switches to Test runs, showing Delete runs older than (days) set to 90, a Delete old runs button, and Test runs and InfluxDB retention links.

Load test runs have no automatic age-based cleanup, so this is where you manually purge old runs.

  • The info text explains that load test run history keeps only the newest 10,000 runs until deleted.
  • InfluxDB retention leads to the per-bucket setting for a run's time-series measurements and counters, set separately on the appliance's Services page. Platform: Data retention - step 4

Tabs on this page

  • API Testing - Sets how long API flow runs, their cascaded node runs, event logs, versions and captured request/response bodies are kept before the background cleanup deletes them.
    • Cleanup Interval (hours), Run Retention (days), Artifact Retention (days).
  • Functional Testing - Sets how long finished functional test runs, their screenshots and raw files, and their logs are kept. A run still in progress is never deleted.
    • Run retention (days), Screenshot and artifact retention (days), Log retention (days).
  • Screenshots - Sets how long load test and End-to-End Monitoring screenshots are kept, and links to Screenshot storage for capture and format settings.
    • Load-test screenshot retention (days), E2E monitoring screenshot retention (days).
  • Test runs - Lets you manually delete load test runs older than a chosen number of days, since load test runs have no automatic age-based cleanup, and links to InfluxDB bucket retention for time-series data.
    • Delete runs older than (days), Delete old runs.

Field reference

Field Purpose Format / Validation Required Default
Cleanup Interval (hours) Sets how often the background cleanup job runs for API Testing data. A lower value runs cleanup more frequently, so data is purged closer to the moment it crosses its retention day count; a higher value runs cleanup less often, so expired data can linger longer before it's actually removed. number (hours) No 6
Run Retention (days) Days to keep completed API flow runs along with their cascaded node runs and event logs. A higher value gives a longer troubleshooting and audit window at the cost of more storage; a lower value frees storage sooner but shortens how far back you can investigate. number (days) No 180
Artifact Retention (days) Days to keep captured HTTP request/response bodies for API flow runs. A higher value keeps more request/response payloads available for debugging older failures; a lower value reduces storage used by those payloads. number (days) No 30
Run retention (days) Days a finished functional test run, its record, rows and log, is kept. Raise it to keep results queryable for longer; lower it to free database space sooner. A run still in progress is never deleted, regardless of this value. number (days) No 180
Screenshot and artifact retention (days) Days a functional test run's screenshots, expected images, console output and raw results database are kept. Screenshots and the raw results database are usually the largest artifacts, so lowering this value is the fastest way to cut storage use for this part. number (days) No 30
Log retention (days) Days a functional test run's execution log is kept. A higher value gives a longer window to review what happened during a run; a lower value frees log storage sooner. number (days) No 30
Load-test screenshot retention (days) Days a load test's screenshots, captured on failures and via Send screenshot actions, are kept. A test's results never depend on this: deleting the image keeps the result row and its counts intact, so lowering this value only reduces stored visual evidence, not test history. number (days) No 30
E2E monitoring screenshot retention (days) Days an End-to-End Monitoring session's screenshots are kept. Raise it to keep visual evidence from monitoring sessions available longer; lower it to reduce screenshot storage for this product. number (days) No 14
Delete runs older than (days) The age threshold used by the Delete old runs action: load test runs older than this many days, along with their results and measurements, are deleted when you confirm the action. This is a manual trigger, not an automatic background cleanup like the other parts. Setting it to 0 deletes every run, including today's. number (days) No 90

Controls reference

Refresh

Reloads the active part's fields with their current saved values.

When to use: Use it after changing a value to confirm it was saved, or when you suspect another admin has changed the settings.

Side effects: Read-only; it does not change any stored retention value.

Help

Opens in-page help content for the current part's retention settings.

When to use: Use it when you want a quick explanation of a field without leaving the page.

Side effects: Read-only; it opens help content and does not change any setting.

Screenshot storage

Navigates to the Screenshot storage page, where what is captured, the format, per-run limits, cleanup frequency and backups are configured.

When to use: Use it when you need to change what is captured or how it's stored, not just how long it's kept.

Side effects: Read-only navigation; it leaves the Data retention page without changing any value here.

Test runs

Navigates to the load test run history.

When to use: Use it to review the runs that would be affected before or after changing the Delete runs older than (days) value.

Side effects: Read-only navigation; no data changes.

InfluxDB retention

Navigates to the appliance's Services configuration where each InfluxDB bucket's retention window is set.

When to use: Use it when you need to change how long a load test's time-series measurements and counters are kept, since that removal by age is separate from deleting run records on this page.

Side effects: Read-only navigation; no data changes on this page.

Delete old runs

Permanently deletes load test runs older than the Delete runs older than (days) value, along with their results and measurements.

When to use: Use it to manually free space or purge old load test history once you've set the day threshold you want.

Side effects: Mutating and destructive; it opens a confirmation prompt before deleting, and the deleted runs' screenshots are removed according to the Screenshots part's settings.

Verify the result

On the part you're configuring, the numeric fields show your updated day values, and the inline help text below each field still states its 1-3650 day range so you can confirm the new value is valid. Reopening the tab, or clicking Refresh, and seeing your new number still there confirms the change was saved. On the Test runs part specifically, after you confirm Delete old runs, the deleted runs no longer appear in the load test run history, while runs newer than your threshold remain untouched. If a part shows licensing information instead of input fields, that product's module isn't included in the appliance's license, and there's nothing to configure on that part.

Troubleshooting

  • Symptom: A part's panel shows licensing information instead of retention fields. Fix: the appliance's license doesn't include that product's module; confirm your license covers the product, or skip that part if you don't use it.
  • Symptom: Clicking Delete old runs doesn't appear to delete anything right away. Fix: it opens a confirmation prompt first; look for that prompt and confirm it, since the button never deletes without confirmation.
  • Symptom: A load test's older runs aren't being removed automatically, unlike API Testing or Functional Testing data. Fix: load test runs have no automatic age-based cleanup; they stay until you manually delete them from the Test runs part, or until the newest-10,000-runs history limit is exceeded.
  • Symptom: After lowering a retention value, old data doesn't disappear immediately. Fix: background cleanup only removes data once it crosses the new threshold, and for API Testing it runs on the Cleanup Interval (hours) schedule, so changes take effect at the next cleanup pass, not instantly.
  • Symptom: A screenshot is gone but the test still shows the same pass/fail result and count. Fix: this is expected; a deleted image is counted but its result row is kept, so test results never depend on the screenshot itself.
  • Symptom: You can't find where to change how long a bucket's time-series measurements are kept. Fix: that isn't set on this page; use the InfluxDB retention link on the Test runs tab, since it's a per-bucket setting on the appliance's Services page.
  • See also: Platform: Screenshot storage - configures what's captured and its format, while this page only controls how long it's kept
  • See also: Platform: Appliance - InfluxDB bucket retention for load test time-series data is configured there, separate from this page
  • Next step: Load Testing: Test runs - review the load test run history before or after changing the Test runs retention or deleting old runs
  • See also: API Testing: Run history - review the API Testing runs affected by the API Testing retention window
  • See also: Functional Testing: Run history - review the functional test runs affected by the Functional Testing retention window
  • See also: End-to-End Monitoring: Run history - review the monitoring sessions affected by the E2E monitoring screenshot retention value
Was this article helpful?
0 out of 0 found this helpful