clear db button

This commit is contained in:
DaKheera47
2025-12-11 22:47:45 +00:00
parent f9352ad5b0
commit a6a4cb9f89
7 changed files with 141 additions and 2 deletions
+15
View File
@@ -89,3 +89,18 @@ export async function runPipeline(config?: {
body: JSON.stringify(config || {}),
});
}
// Database API
export async function clearDatabase(): Promise<{
message: string;
jobsDeleted: number;
runsDeleted: number;
}> {
return fetchApi<{
message: string;
jobsDeleted: number;
runsDeleted: number;
}>('/database', {
method: 'DELETE',
});
}