Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: remove trace null deletions (#8405)

Steffen Schmitzcca352ad1322
diff --git a/packages/shared/src/server/repositories/traces.ts b/packages/shared/src/server/repositories/traces.ts
index 9d4b2869b7..bd1d1fd845 100644
--- a/packages/shared/src/server/repositories/traces.ts
+++ b/packages/shared/src/server/repositories/traces.ts
@@ -1184,19 +1184,6 @@ export const deleteTraces = async (projectId: string, traceIds: string[]) => {
},
tags: input.tags,
}),
- // Delete from traces_null
- commandClickhouse({
- query: `
- DELETE FROM traces_null
- WHERE project_id = {projectId: String}
- AND id IN ({traceIds: Array(String)});
- `,
- params: input.params,
- clickhouseConfigs: {
- request_timeout: env.LANGFUSE_CLICKHOUSE_DELETION_TIMEOUT_MS,
- },
- tags: input.tags,
- }),
// Delete from traces_all_amt
commandClickhouse({
query: `
@@ -1377,18 +1364,6 @@ export const deleteTracesByProjectId = async (projectId: string) => {
},
tags: input.tags,
}),
- // Delete from traces_null
- commandClickhouse({
- query: `
- DELETE FROM traces_null
- WHERE project_id = {projectId: String};
- `,
- params: input.params,
- clickhouseConfigs: {
- request_timeout: env.LANGFUSE_CLICKHOUSE_DELETION_TIMEOUT_MS,
- },
- tags: input.tags,
- }),
// Delete from traces_all_amt
commandClickhouse({
query: `