How do de-register extensions for files?

I’m working on a plugin to allow users to register views to file extensions in a modular manner. I’ve found this function:

To register extensions, but I need to figure out how to de-register extensions when a user changes their settings. Is this possible using a different function or null parameter of some think? Or is it append only?

I found t by decompiling the api myself. and have made a plugins with an example here: