detachChildNamed() sometimes returns successful even though spatial isn't actually removed

When a player clicks on a quad I remove it from its parent node using the detachChildNamed method. Sometimes, for whatever reason, it returns the index the quad was at, but it doesn’t actually remove it. Any ideas as to why this would be the case?

I should also add that if I run the exact same command again the process is the same. Sometimes it works and sometimes it doesn’t.

My guess… you have more quads than you think and you are removing the duplicates.

At least presuming the rest of your scene is managed in the default way.

Of course I should have thought of that. Thanks!