var context = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();
var policyBehaviourFilter = context.getBean('policyBehaviourFilter', Packages.org.alfresco.repo.policy.BehaviourFilter); 

...
var foundNode = search.findNode(nodeRef);
policyBehaviourFilter.disableBehaviour(nodeRef);
foundNode.remove();