Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can the "unknown-macro" be deleted automatically?

Deleted user September 21, 2023

After the migration to the Cloud Server there are still pages where is appearing a notification which says "Unknown Macro [...]". Is it possible to delete this message automatically or with a bulk feature?

If not there would be a lot of manual work to do.

 

Kind regards,

Fabian Weber

Screenshot 2023-09-21 144144.png

3 answers

0 votes
Michael Yang - Shinetech Software
Atlassian Partner
June 1, 2025

Hi! 👋 Just wanted to share a tool that might help.

Our Forge app Easy Bulk Tools was built specifically to handle situations like this. It lets you search for and remove unknown macros in bulk across your Confluence Cloud site — no need to edit each page manually, no script needed.

You can check it out here:
🔗 https://marketplace.atlassian.com/apps/1237934

0 votes
Deleted user December 7, 2023

Hello @Andrii Maliuta ,

If there are already existing scripts I'd prefer to use one of them.

We have not yet actively worked with REST API. Would it be possible to do this with your support? It would also be important to know what effects the Rest API has on the server in terms of performance, security, etc.
Have you already done this and do you have any recommendations on how to proceed and select the right script?

Kind regards
Fabian

0 votes
Andrii Maliuta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 21, 2023

Hello @[deleted] ,

The macro name ('hideelements-macro') is stored inside a page body as a storage format, so you can delete it or replace this text with the name of the macro you need.

You can use your own script that does this on multiple pages via RETS API or use some existing library , like:

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events