010101 we have a PR that's currently on hold flarum/core2058 it should be considered more of a proof of concept, because we still have not decided how to move on with the final implementation.
It's already relatively easily to disable all extensions from the database, by editing the settings column that contains the enabled extension IDs.