I installed an extension and it showed the error below so now I want to disable it, how can I do it?

Flarum encountered a boot error (RuntimeException)
Route fof.terms.api.policies.delete already exists
thrown in /home/$$$$$/domains/xstraa.com/public_html/vendor/flarum/core/src/Http/RouteCollection.php on line 80

    KuneneSandziso easiest way is to use composer again:

    composer remove <extension>

    Go to PHPMyAdmin and search for %enable%, locate the settings table and delete the extensions that are enabled.

      giter To be honest now I feel invincible. I can install any extension I want and know how to remove it if it gives me problems. 😆 . What if I want to install extinsion, is it possible to install it the long way e.g. Download from github, add some codes to composer files, upload the extensions and enable them on sql query. Is it possible?

        KuneneSandziso add some codes to composer files

        That is the only reason you cannot download a zip from somewhere and just upload it. It will not be recognized.

        ohh ok. One last thing.

        My website crashes and shows the following code when I enable "discussion views" extension. It started doing that after upgrade.

        Experienced an error while booting extension: Discussion views. Error occurred while applying an extender of type: Closure.
        thrown in /home/xstraac1/domains/xstraa.com/public_html/vendor/flarum/core/src/Extension/Extension.php on line 142