Navigate to Confluence administration → Administration → Macro Manager.
Use the overview and/or the included search function to find the macros you wish to hide.
To hide a macro, deactivate the according slider. If the slider is red, the macro is hidden. To unhide a macro again, activate the slider (so it's green).
You can decide if specified macros remain hidden for every user, including administrator users, or only for regular, non-admin users.
To hide macros for administrators, too, activate the Remove deactivated macros for administrators in the selection as well checkbox.
Link to this page: https://seibert.biz/mm-configuration