PCloud cleanup fails

What is the problem you are having with rclone?

PCloud’s trash cleanup fails

Run the command 'rclone version' and share the full output of the command.

~ rclone version
rclone v1.73.3
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.8.0-107-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.25.8
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

PCloud

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone cleanup pcloud:

The rclone config contents with secrets removed.

[pcloud]
type = pcloud
hostname = eapi.pcloud.com
token = {"access_token":"********","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
username = alexander.galato@g***l.com
password = ********

A log from the command with the -vv flag

~ rclone -vv cleanup pcloud:
2026/04/07 16:12:36 DEBUG : rclone: Version "v1.73.3" starting with parameters ["rclone" "-vv" "cleanup" "pcloud:"]
2026/04/07 16:12:36 DEBUG : Creating backend with remote "pcloud:"
2026/04/07 16:12:36 DEBUG : Using config file from "/home/alet/.config/rclone/rclone.conf"
2026/04/07 16:12:36 ERROR : Attempt 1/3 failed with 1 errors and: pcloud error: Please provide 'code'. (1022)
2026/04/07 16:12:36 ERROR : Attempt 2/3 failed with 1 errors and: pcloud error: Please provide 'code'. (1022)
2026/04/07 16:12:36 ERROR : Attempt 3/3 failed with 1 errors and: pcloud error: Please provide 'code'. (1022)
2026/04/07 16:12:36 DEBUG : 5 go routines active
2026/04/07 16:12:36 NOTICE: Failed to cleanup: pcloud error: Please provide 'code'. (1022)

welcome to the forum,

when i run the same command, i get a different error, that pcloud does not support the cleanup command.

rclone cleanup pcloud01: --retries=1
ERROR : Attempt 1/1 failed with 1 errors and: pcloud root '' doesn't support cleanup

there are a number of issues with rclone's support for pcloud.
we believe that pcloud changed something on their end.

https://forum.rclone.org/t/recursive-pcloud-root-failure/53622

https://github.com/rclone/rclone/issues/9315#issuecomment-4191795801

CleanUp is not supported on this remote.

i am going to change the topic from bug to help and support

edit: @kapitainsky beat me to it ;wink

1 Like