this one’s been eluding me for a while:
that’s the object

i had the solution all along:
using UnityEditor;
using UnityEngine;
public class RemoveMissingMonoFromSelectedSceneObjects : MonoBehaviour
{
[MenuItem("Tools/Remove Missing Monos From Selected Scene Objects")]
public static void CleanupSelectedSceneObjects()
{
foreach (var s in Selection.gameObjects)
{
#if UNITY_2018_1_OR_NEWER
GameObjectUtility.RemoveMonoBehavioursWithMissingScript(s);
foreach (Transform t in s.transform)
{
GameObjectUtility.RemoveMonoBehavioursWithMissingScript(t.gameObject);
}
EditorUtility.SetDirty(s);
#else
Debug.LogError("only works in 2018 or newer");
#endif
}
}
}