Hi @cliffordmpaulick,
I split this off into another thread to track it better.
I took a look at the diagnostic and I can see lots of items in the trash, awaiting delete. I also see that Amazon is throwing frequent exceptions, which is halting bulk operations, like empty trash. I think this is the issue you are seeing.
We can try to clear up the empty trash operation, first, then see if there are still issues to address. In this case we can use the CLI to better view what we are dealing with and to automatically loop the “emptytrash” operation.
To use the CLI commands from Mac:
-
Open a terminal session (type “terminal” in Spotlight search):
-
Copy and paste the following command into the terminal and hit enter:
python $(ls -d "$HOME/.odrive/bin/"*/ | tail -1)odrive.py status
This will return a summary of odrive status. To get more detailed you can add parameters to the status command like this:
python $(ls -d "$HOME/.odrive/bin/"*/ | tail -1)odrive.py status --uploads
python $(ls -d "$HOME/.odrive/bin/"*/ | tail -1)odrive.py status --downloads
python $(ls -d "$HOME/.odrive/bin/"*/ | tail -1)odrive.py status --waiting
python $(ls -d "$HOME/.odrive/bin/"*/ | tail -1)odrive.py status --trash
python $(ls -d "$HOME/.odrive/bin/"*/ | tail -1)odrive.py status --not_allowed
The “status --trash” command will show you all of the items that are being held in the odrive trash. You can look through these, just to make sure nothing stands out.
To empty the trash, continuing regardless of how many errors Amazon spits back at us, you can run this command:
while [ "$(python $(ls -d "$HOME/.odrive/bin/"*/ | tail -1)odrive.py status --trash)" != "No trash." ]; do echo "There are items in the odrive trash. Processing the deletes ..."; python $(ls -d "$HOME/.odrive/bin/"*/ | tail -1)odrive.py emptytrash; sleep 10; done; echo "All items in the odrive trash have been processed."
To use the CLI commands on Windows:
-
Open up a command prompt by clicking on the Windows icon in the taskbar, typing “cmd”, and then clicking on “Command Prompt”.
-
Once the command prompt is open, copy and paste the following command in (all one line) and hit enter. This will install the CLI for us to use in the next commands. It could take a minute or two to complete:
powershell -command "& {$comm_bin=\"$HOME\.odrive\common\bin\";$o_cli_bin=\"$comm_bin\odrive.exe\";(New-Object System.Net.WebClient).DownloadFile(\"https://dl.odrive.com/odrivecli-win\", \"$comm_bin\oc.zip\");$shl=new-object -com shell.application; $shl.namespace(\"$comm_bin\").copyhere($shl.namespace(\"$comm_bin\oc.zip\").items(),0x10);del \"$comm_bin\oc.zip\";}"
This second command will query the odrive desktop status:
powershell -command "& {$comm_bin=\"$HOME\.odrive\common\bin\";$o_cli_bin=\"$comm_bin\odrive.exe\";$(& \"$o_cli_bin\" status);}"
Then you can get detailed status on specific areas with these commands:
powershell -command "& {$comm_bin=\"$HOME\.odrive\common\bin\";$o_cli_bin=\"$comm_bin\odrive.exe\";$(& \"$o_cli_bin\" status --uploads);}"
powershell -command "& {$comm_bin=\"$HOME\.odrive\common\bin\";$o_cli_bin=\"$comm_bin\odrive.exe\";$(& \"$o_cli_bin\" status --downloads);}"
powershell -command "& {$comm_bin=\"$HOME\.odrive\common\bin\";$o_cli_bin=\"$comm_bin\odrive.exe\";$(& \"$o_cli_bin\" status --trash);}"
powershell -command "& {$comm_bin=\"$HOME\.odrive\common\bin\";$o_cli_bin=\"$comm_bin\odrive.exe\";$(& \"$o_cli_bin\" status --waiting);}"
powershell -command "& {$comm_bin=\"$HOME\.odrive\common\bin\";$o_cli_bin=\"$comm_bin\odrive.exe\";$(& \"$o_cli_bin\" status --not_allowed);}"
The “status --trash” command will show you all of the items that are being held in the odrive trash. You can look through these, just to make sure nothing stands out.
The “emptytrash” command will tell odrive to empty the items in the trash:
powershell -command "& {$comm_bin=\"$HOME\.odrive\common\bin\";$o_cli_bin=\"$comm_bin\odrive.exe\";$(& \"$o_cli_bin\" emptytrash);}"
This final command will push through any errors and continue trying to empty the trash until it is done:
powershell -command "& {$comm_bin=\"$HOME\.odrive\common\bin\";$o_cli_bin=\"$comm_bin\odrive.exe\";while ($(& \"$o_cli_bin\" status --trash) -ne 'No trash.') { echo \"There are items in the trash. Emptying...\";& \"$o_cli_bin\" emptytrash;sleep 2};echo \"Trash fully emptied!\";}"