You can run this JavaScript snippet to clear all your finished jobs. Save it as a snippet in devtools, then invoke it on any enrich page.
Code is pasted below the screenshot.
//
// Delete finished jobs.
fetch("/api/LongRunningJob")
.then(r=>r.json())
.then(d=>{
if (!Array.isArray(d)) {
return;
}
d.forEach((item)=>{
if (/^Finished/.test(String(item.State))) {
fetch(`/api/LongRunningJob/${item.Id}`, { method: "DELETE" })
.then(console.info.bind(console))
.catch(console.error.bind(console));
}
});
});
-
Running your code gave me "fetch(...).done is not a function", but changing "done" to "then" worked.
0 -
Good catch Tobias Månsson. I've updated the code.
0
Please sign in to leave a comment.
Comments
2 comments