How to remove unknown external storage (in NC 14)

Hi there!
I have just learned that there is an app for GDrive external storage. I used to use the old integration which no longer works. Now I try to remove the old external storage folder but don’t find a way to do this.

In the files app I can only download or copy the folder.
And there is no way to delete the integration as admin user:

Am I missing something?

Cheers,
Oskar

You can use the occ-command:
https://docs.nextcloud.com/server/14/admin_manual/configuration_server/occ_command.html?highlight=occ#files-external

1 Like

Today I finally had time to take a shot and remove the old storages…

Old thread, but today I finally fixed this problem for my self.
Thanks to @tflidd I used the files_external:export command found the mount_id of the offending storage location, then used files_external:delete # to remove it.

The command for my docker container provided by linuxserver.io were:

To find the ID:
sudo -u abc php /config/www/nextcloud/occ files_external:export

[
    {
        "mount_id": 1,
        "mount_point": "\/Local(unencrypted)",
        "storage": "\\OC\\Files\\Storage\\FailedStorage",
        "authentication_type": "null::null",
        "configuration": {
            "datadir": "\/ucs"
        },
        "options": {
            "encrypt": true,
            "previews": true,
            "enable_sharing": false,
            "filesystem_check_changes": 1,
            "encoding_compatibility": false,
            "readonly": false
        },
        "applicable_users": [],
        "applicable_groups": [
            "admin"
        ]
    },
    {
        "mount_id": 2,
        "mount_point": "\/Local",
        "storage": "\\OC\\Files\\Storage\\Local",
        "authentication_type": "null::null",
        "configuration": {
            "datadir": "\/ucs\/"
        },
        "options": {
            "encrypt": true,
            "previews": true,
            "enable_sharing": false,
            "filesystem_check_changes": 1,
            "encoding_compatibility": false,
            "readonly": false
        },
        "applicable_users": [
            "me"
        ],
        "applicable_groups": []
    }
]

To remove it:
sudo -u abc php /config/www/nextcloud/occ files_external:delete 1

+----------+---------------------+-------------------------------------------+---------------------+------------------+---------+------------------+-------------------+
| Mount ID | Mount Point         | Storage                                   | Authentication Type | Configuration    | Options | Applicable Users | Applicable Groups |
+----------+---------------------+-------------------------------------------+---------------------+------------------+---------+------------------+-------------------+
| 1        | /Local(unencrypted) | Unknown storage backend local_unencrypted | None                | datadir: "\/ucs" |         |                  | admin             |
+----------+---------------------+-------------------------------------------+---------------------+------------------+---------+------------------+-------------------+
Delete this mount? [y/N] y

And that was it. Problem solved after almost a year.