Before you begin
- View Billing to see History Retention on Settings > Data.
- Manage Billing to change a retention window on Settings > Data. On Settings > Organization > Data, you need Manage Organization Billing.
- Delete Data to delete the usage data of a workspace.
- Delete Organization Data to delete the data of the organization on Settings > Organization > Data.
What stays, and for how long
History retention
History Retention on Settings > Data shows how long Agent Golf keeps your workspace’s history in its cloud. Settings > Organization > Data shows the same for the workspaces of your organization. It has one card for each window:- Session Detail is the full record of each session: its graph, its model requests, and the references to its content. Each day, Agent Golf deletes the detail of each session whose newest activity is older than the window. The session stays in the session list, the Dashboard, and the pull request pages with its totals, such as cost, tokens, and duration. The session page shows that its detail expired.
- Pull Request History keeps pull requests, CI runs, attribution, and session totals. Each day, Agent Golf deletes the pull requests that were merged or closed before the window. It deletes them with their comments, code changes, CI runs, attribution, and intent classifications. It also deletes the CI runs that ended before the window, and the sessions older than the window that no kept pull request links to. An open pull request keeps its sessions.
Change a window
- On Settings > Data, select Edit on the card.
- Under Keep For, choose a window that your plan offers, or Plan Default, then select Save.
Delete data in the cloud
Deleted data can stay in backups for up to 62 days. None of these actions change the data at a Self-Hosted Uplink instance.
Delete usage data
Delete Usage Data on Settings > Data deletes usage data that Agent Golf keeps in its cloud for the workspace. The workspace, its users, its settings, its keys, and the Linear and Jira data of the organization stay. The organization keeps the pull requests, the CI runs, and the GitHub event data of its GitHub organizations. To delete them, use Delete Organization Data. Each deletion asks for the Data to Delete:- Session Detail, the default, deletes the prompts, the responses, the tool calls, and the model requests of each session, and the content of the Cloud Uplink instance. The sessions stay with their totals, their analyses, and the pull request history.
- Session Detail and Pull Request History deletes all usage data: the sessions with their detail, totals, analyses, and pull request attributions, and the trend data.
- Delete a Date Range deletes the chosen data of the sessions last active in the range. Session Detail and Pull Request History also deletes the trend data of the range. Choose a quick range, such as Last 7 Days, or a From and a To date. The dates are UTC days, up to today.
- Delete Usage Data deletes the chosen data of every date.
Delete organization data
Delete Organization Data on Settings > Organization > Data deletes the data that Agent Golf keeps in its cloud for the organization:- The usage data of each workspace of the organization, as Delete Usage Data deletes it.
- The pull requests, the CI runs, their attribution, and the GitHub event data of the organization’s GitHub organizations.
- The sessions of the publishing keys without a workspace of the organization.
- Delete a Date Range deletes, in each workspace, the sessions last active in the range and the range’s trend data. It also deletes the pull requests merged or closed in the range, with their CI runs, attribution, comments, reviews, code changes, and intent classifications, and the CI runs of the range that no pull request links. The Cloud Uplink instances delete their sessions from these dates.
- Delete All Organization Data deletes all of it.
Data deletion after a plan ends
Agent Golf deletes the usage data of your organization a number of days after a trial ends without a plan, or after a paid plan ends. Your plan sets the days after a paid plan ends. See the pricing page. Until then, Billing shows Data Deletion Planned with the date. Start a plan before then to keep the data. The deletion removes the usage data in the cloud, and keeps your organization, its users, and its settings. The data at your Self-Hosted Uplink instances does not change.What the deletion removes and keeps
What the deletion removes and keeps
- Removed: the sessions, the pull request data, the analyses, the model requests, the contributor identities, the CI runs, the GitHub event data, and the data of your Cloud Uplink instance.
- Kept: your organization, its users, roles, invitations, GitHub organization links, uplink instances, keys, settings, and Linear and Jira data.
Delete data at a Self-Hosted Uplink instance
A Self-Hosted Uplink instance has no retention window for session content. Agent Golf cannot reach its disk, so only you can delete this data. Uplink has no command that deletes one session or one user’s data. The smallest part that you can delete is one uplink instance’s state directory, which holds all of that instance’s session content, raw telemetry, and encryption keys. First, stop the Self-Hosted Uplink instance and delete its state:- Host
- Docker
- Kubernetes
With the systemd service of Install Uplink, the state directory is under For another service, the state directory is
/var/lib/uplink:~/.ag-uplink/prod/ under the home directory of the user that runs Uplink. See State directory.- If you set
UPLINK_STORE_DIRto a path outside the state directory, delete that path too. - Delete each backup and each snapshot of that directory, volume, or disk. Agent Golf cannot see your backups.
- If you retire the instance, remove it from the dashboard. When no other uplink instance uses its Uplink key, revoke the key in Settings > Uplink > Self-Hosted.
- To delete the data that Agent Golf keeps for these sessions, use Delete Usage Data. The steps above do not change the cloud data.