Using plugin 0.79b for windows C4D R14. When you select remove unused materials. All materials are removed. Used and unused.
I tested removing different plugins and and it is definitely Octane causing the issue. Also 0.72b does not cause this issue. Only 0.79b.