Skip to content

Instantly share code, notes, and snippets.

@danielpradilla
Created April 29, 2018 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielpradilla/72a603a5d0de71771e0b5836bde05479 to your computer and use it in GitHub Desktop.
Save danielpradilla/72a603a5d0de71771e0b5836bde05479 to your computer and use it in GitHub Desktop.
/*
Execute this from the javascript console in the browser, after you log in pentaho.
Get the listing of children of :home
Go through the list and send a put to deletepermanent with the id of the node.
*/
$.getJSON("http://<server_url>:8080/pentaho/api/repo/files/:home/children", function(data){
$.each(data, function(i, nodes){
nodes.forEach(function(node){
console.log(node.path,node.id);
jQuery.ajax({
async:false,
type: "PUT",
url: "http://<server_url>:8080/pentaho/api/repo/files/deletepermanent",
data: node.id
});
})
})
});
@danielpradilla
Copy link
Author

@apkumardba
Copy link

Thank you Daneil this really works..

Do you have similar script to clear the Carte ID's from the Kettle Status or do we have any permanent solution to get rid of these logs too..

@apkumardba
Copy link

Do we have any similar script to clear carte id objects ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment