This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 | |
}); | |
}) | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do we have any similar script to clear carte id objects ?