totov
(tomas)
December 16, 2024, 2:07pm
1
What is the problem you are having with rclone?
I shared a folder using a shortcut (anyone with the link) and it applied the setting to all files even files in subfolders
Now I want to cancel sharing, I thought if I use link --unlink it will cancel access to all files in all sub-installations in the defined path but it doesn't.
Is there a way to cancel access with a link to all the files?
I used to use https://www.whohasaccess.com/ but it closed.
Run the command 'rclone version' and share the full output of the command.
rclone v1.68.1
- os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
- os/kernel: 10.0.22631.4602 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone link --unlink DriveA:tmpshare/*
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[DriveA]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
[DriveB]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
A log from the command that you were trying to run with the -vv
flag
...
asdffdsa
(jojothehumanmonkey)
December 16, 2024, 2:48pm
2
that does not look like a valid command.
please post the debug log
totov
(tomas)
December 17, 2024, 1:13pm
3
Oh, actually the command I did is
rclone link --unlink DriveA:tmpshare/
And my question is is there a way to do this for all the files that are in the folders and the folders like -r
And so I wrote
rclone link --unlink DriveA:tmpshare/*
Now that I try to get an output of the log I get an exception from the API quota
So I'm not sure how much it helps?
2024/12/17 18:09:44 DEBUG : pacer: low level retry 1/10 (error googleapi: Error 403: User rate limit exceeded., userRateLimitExceeded)
2024/12/17 18:09:44 DEBUG : pacer: Rate limited, increasing sleep to 1.328157284s
2024/12/17 18:09:44 DEBUG : pacer: low level retry 2/10 (error googleapi: Error 403: User rate limit exceeded., userRateLimitExceeded)
2024/12/17 18:09:44 DEBUG : pacer: Rate limited, increasing sleep to 2.939684774s
2024/12/17 18:09:46 DEBUG : pacer: low level retry 3/10 (error googleapi: Error 403: User rate limit exceeded., userRateLimitExceeded)
2024/12/17 18:09:46 DEBUG : pacer: Rate limited, increasing sleep to 4.70164397s
2024/12/17 18:09:49 DEBUG : pacer: low level retry 4/10 (error googleapi: Error 403: User rate limit exceeded., userRateLimitExceeded)
2024/12/17 18:09:49 DEBUG : pacer: Rate limited, increasing sleep to 8.564236171s
2024/12/17 18:09:53 DEBUG : pacer: low level retry 5/10 (error googleapi: Error 403: User rate limit exceeded., userRateLimitExceeded)
2024/12/17 18:09:53 DEBUG : pacer: Rate limited, increasing sleep to 16.926040365s
asdffdsa
(jojothehumanmonkey)
December 17, 2024, 2:04pm
4
totov:
userRateLimitExceeded
that is a common error, can search the forum...
totov
(tomas)
December 18, 2024, 4:07pm
5
Well then it turns out that the --unlink option doesn't really work in rclone
References:
What is the problem you are having with rclone?
$ rclone link --unlink -vv "remote:file.mkv"
$ rclone link --unlink -vv "remote:folder/"
What is your rclone version (output from rclone version)
1.57.0
Which OS you are using and how many bits
Debian 10.10 (64 bit)
Which cloud storage system are you using?
Google Drive
Extra info
Google Drive API (V3) call "delete " method to delete the permission / to revoke access to an file or folder .
DELETE https://www.googleapis.com/drive/v3/files/fi…
opened 08:04PM - 23 Feb 20 UTC
bug
Remote: Drive
help wanted
#### What is the problem you are having with rclone?
I have rclone_v1.47_x64 … run on Ubuntu, i cannot delete files on GoogleDrive.
I use this command:
rclone -v delete GD:myfolder/myfile.json
i get theses messages:
2020/02/19 17:58:04 INFO : Waiting for deletions to finish
2020/02/19 17:58:05 ERROR : myfile.json: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2020/02/19 17:58:05 ERROR : Attempt 1/3 failed with 2 errors and: failed to delete 1 files
2020/02/19 17:58:05 INFO : Waiting for deletions to finish
2020/02/19 17:58:06 ERROR : myfile.json: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2020/02/19 17:58:06 ERROR : Attempt 2/3 failed with 2 errors and: failed to delete 1 files
2020/02/19 17:58:06 INFO : Waiting for deletions to finish
2020/02/19 17:58:07 ERROR : myfile.json: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2020/02/19 17:58:07 ERROR : Attempt 3/3 failed with 2 errors and: failed to delete 1 files
2020/02/19 17:58:07 Failed to delete: failed to delete 1 files
Please, help me?
Thank you.
#### What is your rclone version (output from `rclone version`)
rclone v1.47.0
- os/arch: linux/amd64
- go version: go1.12.4
#### Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 19.04 version 64bits
#### Which cloud storage system are you using? (eg Google Drive)
Google Drive
#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)
rclone -v delete GD:myfolder/myfile.json
#### A log from the command with the `-vv` flag (eg output from `rclone -vv copy /tmp remote:tmp`)
See : https://forum.rclone.org/t/delete-files-on-googledrive-with-rclone-command/14445?u=lebossejames
A good temporary solution:
reset.gs
// Note that this script will remove all permissions of all files and subfolders
// (including files in subfolders) of the given folder
// https://drive.google.com/drive/folders/abcdefgh
const id = "abcdefgh";
function start() {
const folder = DriveApp.getFolderById(id);
getSubFolders(folder);
// At the end, reset for parent folder
This file has been truncated. show original
Thanks for your help anyway
system
(system)
Closed
December 21, 2024, 4:08pm
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.