To remove a script or style, you must remove it after it was added. If you try to remove it before it was added, or even print $GLOBALS['wp_scripts']->registered , nothing will happen, since it was not added yet. So a way to remove them is to execute the _remove_style function as late as possible.