How to actually delete a Macro?

@franciscol the following script should help a bit figuring out where this macro is exactly coming from (it should give you the location of the JAR file which contain this component’s class)

{{groovy}}
  print services.component.getInstance(org.xwiki.rendering.macro.Macro.class, 'expand').class.protectionDomain.codeSource.location
{{/groovy}}
2 Likes

Note that you’ll need a user with Programming Rights to execute it.

1 Like

Problem solved.
I did the good ol’ ‘turn it off and on again’ (restarted the server) and it disappeared.

Your command @tmortagne is returning “null” I assume by the fact that the macro did get removed.

Thank you both of you!

Yes, if the macro is not around anymore, it’s expected that this command return an error about the macro component being null.