How do I prevent deleted nodes in the material editor from getting moved the uncategorized folder?

When in the material editor, if I add a node, then delete it, it automatically moves from being in its default folder, to a new uncategorized folder. This makes looking for it a pain without using the search function. Is there a way to prevent this behavior?