Hi,
Tha'ts weird, even when a document is referenced with some component in the channel manager, you can delete it using the console without having this issue.
Did you try doing it using the updater Editor ? If not try executing the script below with XPath query : //content/document/
{ProjectNameSpace}/{folderName}
package org.hippoecm.frontend.plugins.cms.admin.updater
import org.onehippo.repository.update.BaseNodeUpdateVisitor
import javax.jcr.Node
import javax.jcr.Value
class UpdaterTemplate extends BaseNodeUpdateVisitor {
boolean doUpdate(Node node) {
node.remove();
log.debug "removing node ${node}"
return false
}
boolean undoUpdate(Node node) {
throw new UnsupportedOperationException('Updater does not implement undoUpdate method')
}
}
Best regards