No puede modificar el contenido de un iframe que se carga desde un dominio diferente. Esta es una restricción establecida por la seguridad del navegador. si estás en el mismo dominio, puedes probar esto
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>contents demo</title> <script src="https://code.jquery.com/jquery-3.5.0.js"></script> </head> <body> <iframe src="https://000.maps.arcgis.com/apps/dashboards/000" style="width: 100%; height: 100%; border: 0" id="frameDemo"></iframe> <script> $( "#frameDemo" ).contents().find( ".js-action-group" ).remove(); </script> </body> </html>