Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Delete thumbnails if exists. To be used in Alfresco javascript console. Starts from selected space
recurse(space, function(node) {
var doclib = node.getThumbnail('doclib');
var webpreview = node.getThumbnail('webpreview');
var webpreview2 = node.getThumbnail('web-preview');
var imgpreview = node.getThumbnail('imgpreview');
var pdf = node.getThumbnail('pdf');
if(doclib){
doclib.remove();
}
if(webpreview){
webpreview.remove();
}
if(webpreview2){
webpreview2.remove();
}
if(imgpreview){
imgpreview.remove();
}
if(pdf){
pdf.remove();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment