Trace deletion permanently removes a set of traces from a project, together with everything Latitude derived from them. Use it when you need to erase specific data while keeping the rest of your telemetry, for example to honour a data processing agreement that requires deleting an end customer’s data within 30 days of off-boarding.Deletion is independent of your plan’s retention period. Traces are deleted when you ask, not when retention expires.
Deletion cannot be undone. Preview a selection before deleting it.
You select traces to delete the same way you filter them in the trace list. Plan for deletion when you instrument your application, so every trace that belongs to one of your customers can be found later:
Tag traces with a stable customer key, such as customer:acme.
Or set metadata, such as customer_id, and select on metadata.customer_id.
Or keep one project per customer when their data should never mix.
userId and sessionId also work as selectors when they identify the data you need to erase.
the trace and all of its spans, including prompts, completions and tool calls
scores and annotations on the trace, and their contribution to signals
the trace’s search index entries
message embeddings and agent memory content that only the deleted traces used
the analyses of the sessions the trace belongs to (conversation insights, topics and flagger results). They are recomputed from whatever remains of the session
Deleted traces disappear from Latitude immediately; removal from underlying storage completes in the background. Spans your application still sends for a deleted trace are discarded for 30 days afterwards, so a late span cannot bring the trace back.What is not deleted:
Dataset rows you copied from traces, unless you ask for them. A dataset row is your own copy, so it stays by default. Turn on Also delete dataset rows copied from these traces, or pass includeDatasetRows: true through the API, to delete every copy, including its earlier versions, from every dataset of the organization. Rows you created by hand or imported from a file are never matched.
Billing usage records. They count usage per trace and contain no trace content.
Aggregate counters, such as the number of signal occurrences per hour. They contain no trace content.
Exports you downloaded. Export files are your own copies; their download links expire on their own.
Only traces that started before you request the deletion are deleted. A deletion never removes traces your application sends afterwards, even if they match the same filter.
Organization owners and admins can delete traces from the trace list:
Filter the list, then select the traces to delete, or select them all.
Choose Delete and check the number of traces that will be deleted.
Type delete traces to confirm.
You get a notification when the deletion finishes. Settings → Data deletion lists every deletion of the project with its receipt id, the number of traces and records deleted, and who requested it.A deletion of everything a text search matched isn’t possible, because the search can’t be reproduced as filters. Select the traces individually, or narrow the list with filters instead of a search.
Each deletion is a background job. Request it, then poll it until its status is completed. The finished deletion records what was selected, who requested it, and how many traces and records were deleted; keep it as evidence of erasure.
To delete specific traces instead, pass up to 100 ids: { "by": "ids", "ids": ["<trace id>", ...] }. Larger selections should use a filter.A filter must contain at least one condition, and percentile conditions (gtePercentile) are not accepted, because they select relative to the data rather than a stable set of traces.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"Latitude Docs","colors":{"primary":"#0080FF","light":"#3399FF","dark":"#0066CC"},"logo":{"light":"https://mintcdn.com/latitude-monitoring/699jMAAK4Cn0CdvL/logo/light.svg?fit=max\u0026auto=format\u0026n=699jMAAK4Cn0CdvL\u0026q=85\u0026s=e92ba200a7a88140b54bbd0327892230","dark":"https://mintcdn.com/latitude-monitoring/699jMAAK4Cn0CdvL/logo/dark.svg?fit=max\u0026auto=format\u0026n=699jMAAK4Cn0CdvL\u0026q=85\u0026s=c3e4024227fa7634721247e1f3534c1b","href":"https://latitude.so"},"favicon":"https://mintcdn.com/latitude-monitoring/kBwmxH9s6hyBfwOT/favicon.svg?fit=max\u0026auto=format\u0026n=kBwmxH9s6hyBfwOT\u0026q=85\u0026s=9387ab08aaed25a69c1a0d971c4539ab","appearance":{"default":"system"},"background":{"decoration":"gradient"},"footer":{"socials":{"github":"https://github.com/latitude-dev/latitude-llm","slack":"https://join.slack.com/t/trylatitude/shared_invite/zt-35wu2h9es-N419qlptPMhyOeIpj3vjzw"}},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":false},"integrations":{"gtm":{"tagId":"GTM-5NWGV24H"},"posthog":{"apiKey":"phc_BWYPiCdzp7A2mGD3PsrXamcxmemNNctkLYMNDHmmYJJb","sessionRecording":true}},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/latitude-dev/latitude-llm"},{"anchor":"YouTube","icon":"youtube","href":"https://www.youtube.com/@trylatitude"},{"anchor":"Slack Community","icon":"slack","href":"https://join.slack.com/t/trylatitude/shared_invite/zt-35wu2h9es-N419qlptPMhyOeIpj3vjzw"},{"anchor":"Status","icon":"activity","href":"https://status.latitude.so"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"latitude-monitoring","hasAudioNarration":false,"actualSubdomain":"latitude-monitoring","customDomains":["docs.latitude.so"],"gitSource":{"type":"github","owner":"latitude-dev","repo":"latitude-llm","deployBranch":"development","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae098858f66b62075d9deac","collectionId":"3e48a789-d896-43bf-8144-d76924efe6b5","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae098858f66b62075d9deac"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae09ba64d9226ccd887bc5a","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Getting Started","count":52},{"language":"default","tag":"Observe","count":28},{"language":"default","tag":"Frameworks","count":19},{"language":"default","tag":"Providers","count":17},{"language":"default","tag":"Understand","count":16},{"language":"default","tag":"Features","count":14},{"language":"default","tag":"Refine","count":13},{"language":"default","tag":"More","count":11},{"language":"default","tag":"Security and Compliance","count":6},{"language":"default","tag":"Agent dispatch","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"security/trace-deletion","slug":"/security/trace-deletion","pageMetadata":{"title":"Deleting traces","description":"Permanently delete traces and everything derived from them, for example to erase an end customer's data when they off-board.","href":"/security/trace-deletion"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Permanently delete traces and everything derived from them, for example to erase an end customer’s data when they off-board.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`deleting-traces`,children:`Deleting traces`}),`\n`,_jsx(_components.p,{children:`Trace deletion permanently removes a set of traces from a project, together with everything Latitude derived from them. Use it when you need to erase specific data while keeping the rest of your telemetry, for example to honour a data processing agreement that requires deleting an end customer’s data within 30 days of off-boarding.`}),`\n`,_jsx(_components.p,{children:`Deletion is independent of your plan’s retention period. Traces are deleted when you ask, not when retention expires.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Deletion cannot be undone. Preview a selection before deleting it.`})}),`\n`,_jsx(Heading,{level:`2`,id:`make-your-data-deletable`,children:`Make your data deletable`}),`\n`,_jsx(_components.p,{children:`You select traces to delete the same way you filter them in the trace list. Plan for deletion when you instrument your application, so every trace that belongs to one of your customers can be found later:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tag`}),` traces with a stable customer key, such as `,_jsx(_components.code,{children:`customer:acme`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Or set `,_jsx(_components.strong,{children:`metadata`}),`, such as `,_jsx(_components.code,{children:`customer_id`}),`, and select on `,_jsx(_components.code,{children:`metadata.customer_id`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Or keep one `,_jsx(_components.strong,{children:`project per customer`}),` when their data should never mix.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`userId`}),` and `,_jsx(_components.code,{children:`sessionId`}),` also work as selectors when they identify the data you need to erase.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-gets-deleted`,children:`What gets deleted`}),`\n`,_jsx(_components.p,{children:`For every selected trace, Latitude deletes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`the trace and all of its spans, including prompts, completions and tool calls`}),`\n`,_jsx(_components.li,{children:`scores and annotations on the trace, and their contribution to signals`}),`\n`,_jsx(_components.li,{children:`the trace’s search index entries`}),`\n`,_jsx(_components.li,{children:`message embeddings and agent memory content that only the deleted traces used`}),`\n`,_jsx(_components.li,{children:`the analyses of the sessions the trace belongs to (conversation insights, topics and flagger results). They are recomputed from whatever remains of the session`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Deleted traces disappear from Latitude immediately; removal from underlying storage completes in the background. Spans your application still sends for a deleted trace are discarded for 30 days afterwards, so a late span cannot bring the trace back.`}),`\n`,_jsxs(_components.p,{children:[`What is `,_jsx(_components.strong,{children:`not`}),` deleted:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dataset rows you copied from traces`}),`, unless you ask for them. A dataset row is your own copy, so it stays by default. Turn on `,_jsx(_components.strong,{children:`Also delete dataset rows copied from these traces`}),`, or pass `,_jsx(_components.code,{children:`includeDatasetRows: true`}),` through the API, to delete every copy, including its earlier versions, from every dataset of the organization. Rows you created by hand or imported from a file are never matched.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Billing usage records.`}),` They count usage per trace and contain no trace content.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Aggregate counters`}),`, such as the number of signal occurrences per hour. They contain no trace content.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Exports you downloaded.`}),` Export files are your own copies; their download links expire on their own.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Only traces that `,_jsx(_components.strong,{children:`started before you request the deletion`}),` are deleted. A deletion never removes traces your application sends afterwards, even if they match the same filter.`]}),`\n`,_jsx(Heading,{level:`2`,id:`delete-traces`,children:`Delete traces`}),`\n`,_jsx(Heading,{level:`3`,id:`from-the-trace-list`,children:`From the trace list`}),`\n`,_jsx(_components.p,{children:`Organization owners and admins can delete traces from the trace list:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Filter the list, then select the traces to delete, or select them all.`}),`\n`,_jsxs(_components.li,{children:[`Choose `,_jsx(_components.strong,{children:`Delete`}),` and check the number of traces that will be deleted.`]}),`\n`,_jsxs(_components.li,{children:[`Type `,_jsx(_components.code,{children:`delete traces`}),` to confirm.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`You get a notification when the deletion finishes. `,_jsx(_components.strong,{children:`Settings → Data deletion`}),` lists every deletion of the project with its receipt id, the number of traces and records deleted, and who requested it.`]}),`\n`,_jsx(_components.p,{children:`A deletion of everything a text search matched isn’t possible, because the search can’t be reproduced as filters. Select the traces individually, or narrow the list with filters instead of a search.`}),`\n`,_jsx(Heading,{level:`3`,id:`with-the-api-sdks-or-cli`,children:`With the API, SDKs or CLI`}),`\n`,_jsxs(_components.p,{children:[`Each deletion is a background job. Request it, then poll it until its `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`completed`}),`. The finished deletion records what was selected, who requested it, and how many traces and records were deleted; keep it as evidence of erasure.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`14`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { LatitudeClient } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"@latitude-data/sdk\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` client`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` LatitudeClient`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ apiKey: process.env.`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`LATITUDE_API_KEY`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`!`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` })`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` traces`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { by: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"filters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, filters: { tags: [{ op: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"contains\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, value: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"customer:acme\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }] } } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` const`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`matchedTraceCount`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.traceDeletions.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`preview`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-project\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, { traces })`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:\"`About to delete ${\"}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`matchedTraceCount`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:\"} traces`\"}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`let`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` deletion `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.traceDeletions.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`create`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-project\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, { traces })`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`while`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` (deletion.status `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`===`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"pending\"`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` ||`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` deletion.status `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`===`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"running\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` Promise`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`((`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`resolve`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=>`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` setTimeout`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(resolve, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`10_000`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` deletion `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.traceDeletions.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`get`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-project\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, deletion.id)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(deletion.status, deletion.matchedTraceCount, deletion.deletedRecordCount)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`16`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` time`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` latitude_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` LatitudeClient`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`client `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` LatitudeClient(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"LATITUDE_API_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`traces `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"by\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"filters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"filters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"tags\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: [{`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"op\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"contains\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"customer:acme\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}]}}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`preview `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.trace_deletions.preview(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-project\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`traces`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`traces)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`f`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"About to delete `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`{`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`preview.matched_trace_count`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`}`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` traces\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`deletion `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.trace_deletions.create(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-project\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`traces`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`traces)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`while`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` deletion.status `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`in`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` (`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"pending\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"running\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` time.sleep(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`10`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` deletion `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.trace_deletions.get(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-project\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, deletion.id)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(deletion.status, deletion.matched_trace_count, deletion.deleted_record_count)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`CLI`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`latitude`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` trace-deletions`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` preview`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --project-slug`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-project`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --json`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"traces\":{\"by\":\"filters\",\"filters\":{\"tags\":[{\"op\":\"contains\",\"value\":\"customer:acme\"}]}}}'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`latitude`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` trace-deletions`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` create`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --project-slug`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-project`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --json`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"traces\":{\"by\":\"filters\",\"filters\":{\"tags\":[{\"op\":\"contains\",\"value\":\"customer:acme\"}]}}}'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`latitude`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` trace-deletions`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` get`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --project-slug`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-project`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --deletion-id`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`i`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`d`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`To delete specific traces instead, pass up to 100 ids: `,_jsx(_components.code,{children:`{ \"by\": \"ids\", \"ids\": [\"\u003ctrace id>\", ...] }`}),`. Larger selections should use a filter.`]}),`\n`,_jsxs(_components.p,{children:[`A filter must contain at least one condition, and percentile conditions (`,_jsx(_components.code,{children:`gtePercentile`}),`) are not accepted, because they select relative to the data rather than a stable set of traces.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/security/pii-redaction`,children:`PII redaction`}),` keeps sensitive values out of Latitude in the first place.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/security/compliance/gdpr`,children:`GDPR`}),` covers Latitude’s data protection approach.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Deleting traces","description":"Permanently delete traces and everything derived from them, for example to erase an end customer's data when they off-board.","href":"/security/trace-deletion"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Deleting traces","slug":"deleting-traces","depth":1,"children":[]},{"title":"Make your data deletable","slug":"make-your-data-deletable","depth":2,"children":[]},{"title":"What gets deleted","slug":"what-gets-deleted","depth":2,"children":[]},{"title":"Delete traces","slug":"delete-traces","depth":2,"children":[{"title":"From the trace list","slug":"from-the-trace-list","depth":3,"children":[]},{"title":"With the API, SDKs or CLI","slug":"with-the-api-sdks-or-cli","depth":3,"children":[]}]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"latitude-monitoring","siteName":"Latitude Docs","title":"Deleting traces - Latitude Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-27T12:40:08.508Z","originalFileLocation":"security/trace-deletion.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Permanently delete traces and everything derived from them, for example to erase an end customer\u0026#x27;s data when they off-board.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Latitude Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/latitude-monitoring/JkvZexvD8wHNs0NR/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/latitude-monitoring/JkvZexvD8wHNs0NR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/latitude-monitoring/JkvZexvD8wHNs0NR/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/latitude-monitoring/JkvZexvD8wHNs0NR/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/latitude-monitoring/JkvZexvD8wHNs0NR/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/latitude-monitoring/JkvZexvD8wHNs0NR/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/latitude-monitoring/JkvZexvD8wHNs0NR/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/latitude-monitoring/JkvZexvD8wHNs0NR/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/latitude-monitoring/JkvZexvD8wHNs0NR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Deleting traces - Latitude Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Permanently delete traces and everything derived from them, for example to erase an end customer\u0026#x27;s data when they off-board.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Latitude Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.latitude.so/security/trace-deletion\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://latitude-monitoring.mintlify.app/_mintlify/api/og/v2?division=Security+and+Compliance\u0026amp;title=Deleting+traces\u0026amp;description=Permanently+delete+traces+and+everything+derived+from+them%2C+for+example+to+erase+an+end+customer%27s+data+when+they+off-board.\u0026amp;theme=67dcc3d4ce02bfe4c24811e4\u0026amp;signature=51d7ee2b006269c013ab252f5295705eff5bcf7bcf3e486df05b8f797ac630d7\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Deleting traces - Latitude Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Permanently delete traces and everything derived from them, for example to erase an end customer\u0026#x27;s data when they off-board.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://latitude-monitoring.mintlify.app/_mintlify/api/og/v2?division=Security+and+Compliance\u0026amp;title=Deleting+traces\u0026amp;description=Permanently+delete+traces+and+everything+derived+from+them%2C+for+example+to+erase+an+end+customer%27s+data+when+they+off-board.\u0026amp;theme=67dcc3d4ce02bfe4c24811e4\u0026amp;signature=51d7ee2b006269c013ab252f5295705eff5bcf7bcf3e486df05b8f797ac630d7\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/latitude-monitoring/JkvZexvD8wHNs0NR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Latitude Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0080FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.latitude.so/security/trace-deletion\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/security/trace-deletion.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.latitude.so/#organization\",\"name\":\"Latitude Docs\",\"url\":\"https://docs.latitude.so\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/latitude-monitoring/699jMAAK4Cn0CdvL/logo/light.svg?fit=max\u0026auto=format\u0026n=699jMAAK4Cn0CdvL\u0026q=85\u0026s=e92ba200a7a88140b54bbd0327892230\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.latitude.so#website\",\"name\":\"Latitude Docs\",\"url\":\"https://docs.latitude.so\",\"publisher\":{\"@id\":\"https://docs.latitude.so/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.latitude.so/security/trace-deletion#webpage\",\"url\":\"https://docs.latitude.so/security/trace-deletion\",\"name\":\"Deleting traces\",\"description\":\"Permanently delete traces and everything derived from them, for example to erase an end customer's data when they off-board.\",\"dateModified\":\"2026-10-27T12:40:08.508Z\",\"isPartOf\":{\"@id\":\"https://docs.latitude.so#website\"},\"breadcrumb\":{\"@id\":\"https://docs.latitude.so/security/trace-deletion#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.latitude.so/security/trace-deletion#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Security and Compliance\",\"item\":\"https://docs.latitude.so/security/data-protection\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deleting traces\",\"item\":\"https://docs.latitude.so/security/trace-deletion\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.latitude.so/security/trace-deletion#article\",\"headline\":\"Deleting traces\",\"name\":\"Deleting traces\",\"description\":\"Permanently delete traces and everything derived from them, for example to erase an end customer's data when they off-board.\",\"url\":\"https://docs.latitude.so/security/trace-deletion\",\"mainEntityOfPage\":{\"@id\":\"https://docs.latitude.so/security/trace-deletion#webpage\"},\"dateModified\":\"2026-10-27T12:40:08.508Z\",\"publisher\":{\"@id\":\"https://docs.latitude.so/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.latitude.so#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Latitude Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Latitude Docs","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/latitude-dev/latitude-llm"},{"anchor":"YouTube","icon":"youtube","href":"https://www.youtube.com/@trylatitude"},{"anchor":"Slack Community","icon":"slack","href":"https://join.slack.com/t/trylatitude/shared_invite/zt-35wu2h9es-N419qlptPMhyOeIpj3vjzw"},{"anchor":"Status","icon":"activity","href":"https://status.latitude.so"}]},"groups":[{"group":"Overview","pages":[{"title":"Latitude Overview","href":"/getting-started/introduction"},{"title":"How to use Latitude","href":"/getting-started/how-to-use-latitude"},{"title":"Self-Healing Agents","href":"/getting-started/self-healing-agents"},{"title":"Core Concepts","href":"/getting-started/concepts"}]},{"group":"Getting Started","pages":[{"title":"Start tracing","href":"/telemetry/start-tracing"},{"title":"Migrate from Latitude V1","href":"/getting-started/migrate-from-v1"},{"title":"Memory tracing","href":"/telemetry/memory"},{"group":"Migrate from another platform","pages":[{"title":"Migrate to Latitude","href":"/telemetry/imports/migrate"},{"title":"Import traces","href":"/telemetry/imports/overview"},{"title":"Langfuse","href":"/telemetry/imports/langfuse"},{"title":"LangSmith","href":"/telemetry/imports/langsmith"},{"title":"Braintrust","href":"/telemetry/imports/braintrust"}]},{"group":"SDKs","pages":[{"title":"TypeScript SDK","href":"/telemetry/typescript"},{"title":"Python SDK","href":"/telemetry/python"},{"title":"OpenTelemetry Exporter (OTEL)","href":"/telemetry/otel-exporter"}]},{"group":"Providers","pages":[{"title":"OpenAI","href":"/telemetry/providers/openai"},{"title":"Anthropic","href":"/telemetry/providers/anthropic"},{"title":"Google Gemini","href":"/telemetry/providers/gemini"},{"title":"Azure OpenAI","href":"/telemetry/providers/azure"},{"title":"Amazon Bedrock","href":"/telemetry/providers/amazon-bedrock"},{"title":"Google AI Platform","href":"/telemetry/providers/google-ai-platform"},{"title":"Vertex AI","href":"/telemetry/providers/vertex-ai"},{"title":"Groq","href":"/telemetry/providers/groq"},{"title":"Mistral AI","href":"/telemetry/providers/mistral"},{"title":"Ollama","href":"/telemetry/providers/ollama"},{"title":"Cohere","href":"/telemetry/providers/cohere"},{"title":"Together AI","href":"/telemetry/providers/together-ai"},{"title":"Replicate","href":"/telemetry/providers/replicate"},{"title":"Amazon SageMaker","href":"/telemetry/providers/sagemaker"},{"title":"IBM watsonx.ai","href":"/telemetry/providers/watsonx"},{"title":"Aleph Alpha","href":"/telemetry/providers/aleph-alpha"},{"title":"Hugging Face Transformers","href":"/telemetry/providers/transformers"}]},{"group":"Frameworks","pages":[{"title":"Vercel AI SDK","href":"/telemetry/frameworks/vercel-ai-sdk"},{"title":"Vercel AI SDK v7","href":"/telemetry/frameworks/vercel-ai-sdk-v7"},{"title":"Cloudflare Think","href":"/telemetry/frameworks/cloudflare-think"},{"title":"Cloudflare AI Gateway","href":"/telemetry/frameworks/cloudflare-ai-gateway"},{"title":"OpenAI Agents SDK","href":"/telemetry/frameworks/openai-agents"},{"title":"Google ADK","href":"/telemetry/frameworks/google-adk"},{"title":"LangChain","href":"/telemetry/frameworks/langchain"},{"title":"LlamaIndex","href":"/telemetry/frameworks/llamaindex"},{"title":"CrewAI","href":"/telemetry/frameworks/crewai"},{"title":"Haystack","href":"/telemetry/frameworks/haystack"},{"title":"LiteLLM","href":"/telemetry/frameworks/litellm"},{"title":"DSPy","href":"/telemetry/frameworks/dspy"},{"title":"Pydantic AI","href":"/telemetry/frameworks/pydantic-ai"},{"title":"Mastra","href":"/telemetry/frameworks/mastra"},{"title":"Eve","href":"/telemetry/frameworks/eve"},{"title":"Flue","href":"/telemetry/frameworks/flue"},{"title":"Strands Agents","href":"/telemetry/frameworks/strands"},{"title":"LiveKit Agents","href":"/telemetry/frameworks/livekit"},{"title":"ElevenLabs Agents","href":"/telemetry/frameworks/elevenlabs"}]},{"group":"Agent harnesses","pages":[{"title":null,"href":"/telemetry/claude-code"},{"title":null,"href":"/telemetry/hermes"},{"title":null,"href":"/telemetry/openclaw"},{"title":null,"href":"/telemetry/pi-coding-agent"},{"title":null,"href":"/telemetry/prime-intellect"}]}]},{"group":"Observe","pages":[{"title":"Overview","href":"/observability/overview"},{"title":"Agent Score","href":"/observability/agent-score"},{"title":"Sessions","href":"/observability/sessions"},{"title":"Users","href":"/observability/users"},{"title":"Tools","href":"/observability/tools"},{"title":"Memory","href":"/observability/memory"},{"title":"Cost","href":"/observability/cost"},{"title":"Traces","href":"/observability/traces"},{"title":"Spans","href":"/observability/spans"},{"title":"Tool calls","href":"/observability/tool-calls"},{"group":"Search","pages":[{"title":"Search Overview","href":"/search/overview"},{"title":"Saved Searches","href":"/search/saved-searches"},{"title":"Search and review effectively","href":"/search/guides/search-and-review-effectively"}]},{"group":"Features","pages":[{"title":"Duration","href":"/observability/features/duration"},{"title":"Environments","href":"/observability/features/environments"},{"title":"Filters","href":"/observability/filters"},{"title":"Log levels","href":"/observability/features/log-levels"},{"title":"Metadata","href":"/observability/features/metadata"},{"title":"Percentile cohorts","href":"/observability/features/percentile-cohorts"},{"title":"Releases and versioning","href":"/observability/features/releases-versioning"},{"title":"Sampling","href":"/observability/features/sampling"},{"title":"Tags","href":"/observability/features/tags"},{"title":"Token and cost tracking","href":"/observability/features/token-cost-tracking"},{"title":"Trace IDs","href":"/observability/features/trace-ids"},{"title":"Trace URLs","href":"/observability/features/trace-urls"},{"title":"User tracking","href":"/observability/features/user-tracking"},{"title":"Sandbox","href":"/observability/features/sandbox"}]},{"group":"Guides","pages":[{"title":"Group traces by project","href":"/observability/guides/group-traces-by-project"}]}]},{"group":"Understand","pages":[{"title":"Signal discovery","href":"/signals/overview"},{"title":"Create a signal","href":"/signals/create"},{"title":"Signal management","href":"/signals/management"},{"title":"Behaviors","href":"/behaviours/overview"},{"title":"Experiments","href":"/experiments/overview"},{"group":"Annotations","pages":[{"title":"Annotations Overview","href":"/annotations/overview"},{"title":"Inline Annotations","href":"/annotations/inline-annotations"},{"title":"Flaggers","href":"/annotations/flaggers"},{"title":"Scores Overview","href":"/scores/overview"},{"title":"Score Analytics","href":"/scores/analytics"}]},{"group":"Evaluations","pages":[{"title":"Evaluations overview","href":"/evaluations/overview"},{"title":"Detection methods","href":"/evaluations/detection-methods"},{"title":"Custom scripts","href":"/evaluations/custom-scripts"},{"title":"Evaluation triggers","href":"/evaluations/triggers"},{"title":"Evaluation alignment","href":"/evaluations/alignment"}]},{"group":"Guides","pages":[{"title":"Annotate traces effectively","href":"/annotations/guides/annotate-effectively"}]}]},{"group":"Refine","pages":[{"title":"Monitors Overview","href":"/monitors/overview"},{"group":"Agent dispatch","pages":[{"title":"Agent dispatch","href":"/agent-dispatch/overview"},{"group":"Integrations","pages":[{"title":"Cursor agent dispatch","href":"/agent-dispatch/cursor"},{"title":"Claude Code agent dispatch","href":"/agent-dispatch/claude-code"},{"title":"Linear agent dispatch","href":"/agent-dispatch/linear"},{"title":"Agent dispatch webhooks","href":"/agent-dispatch/webhooks"}]}]},{"group":"Datasets","pages":[{"title":"Datasets","href":"/datasets/overview"},{"title":"Add traces to a dataset","href":"/datasets/add-traces"},{"title":"Add expected output","href":"/datasets/expected-output"},{"title":"Custom columns","href":"/datasets/custom-columns"},{"title":"Edit row contents","href":"/datasets/edit-rows"}]},{"title":"Simulate agents locally","href":"/test-and-fix/simulations"},{"title":"Regression testing","href":"/test-and-fix/regression-testing"}]},{"group":"Security and Compliance","pages":[{"title":"Data protection","href":"/security/data-protection"},{"title":"PII redaction","description":"How Latitude reduces PII exposure with ingest-side redaction, SDK attribute masking, and internal data handling safeguards.","href":"/security/pii-redaction"},{"title":"Deleting traces","href":"/security/trace-deletion"},{"group":"Compliance","pages":[{"title":"SOC II","description":"Latitude's SOC II certification and security controls.","href":"/security/compliance/soc2"},{"title":"ISO 27001","href":"/security/compliance/iso-27001"},{"title":"GDPR","href":"/security/compliance/gdpr"}]}]},{"group":"Deployment","pages":[{"title":"Overview","href":"/deployment/overview"},{"title":"Single-host","href":"/deployment/single-host"},{"title":"Cluster","href":"/deployment/cluster"},{"title":"Configuration","href":"/deployment/configuration"}]},{"group":"Development","pages":[{"title":"Setup","href":"/development/setup"},{"title":"Contributing","href":"/development/contributing"}]},{"group":"More","pages":[{"title":"MCP","href":"/getting-started/mcp"},{"title":"CLI","href":"/getting-started/cli"},{"title":"Skills","href":"/getting-started/skills"},{"title":"API","href":"/more/api-reference"},{"title":"Artifacts","href":"/more/artifacts"},{"title":"Notifications","href":"/more/notifications"},{"title":"Slack integration","href":"/more/slack"},{"title":"GitHub integration","href":"/more/github"},{"group":"Data destinations","pages":[{"title":"Overview","href":"/more/data-destinations/overview"},{"title":"PostHog","href":"/more/data-destinations/posthog"}]},{"title":"Partners","href":"/more/partners"}]}]},"title":"Deleting traces - Latitude Docs","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":[],"chunks":[]}