# Deleting files and folders in Dropbox does not work

**URL:** <https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279>\
**Category:** Virtualmin\
**Created:** [February 22, 2025, 1:55pm UTC](https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279 "2025-02-22T13:55:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasse\_basse1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/hasse_basse1/32/5354_2.png) [@hasse\_basse1](https://forum.virtualmin.com/u/hasse_basse1)\
**Post date:** [February 22, 2025, 1:55pm UTC](https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279/1 "2025-02-22T13:55:40Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Debian 12 |
| Webmin version | 2.202 |
| Virtualmin version | 7.30.4 Pro |
| Webserver version | Apache |
| Related packages | SUGGESTED |

Hi

I backup domains to Dropbox and to AWS S3 and the backup to both locations goes without problems, but deleting old backups and folders does not work in Dropbox, while there are no issues about that in AWS.

Does anyone have any clues about how to handle this? For the moment I delete them manually from Dropbox.

The error is : Deleting backups from local file /usr/share/webmin/virtual-server/dropbox:///Backup/Virtualmin/backup-barr/differential/%Y-%m-%d matching .\*-Differential older than 7 days …  
… failed to list Dropbox files : HTTP/1.0 409 Conflict

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [February 22, 2025, 9:57pm UTC](https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279/2 "2025-02-22T21:57:54Z")

</div>

Try a more conventional name for the backup as I’m not sure `/%Y-%m-%d` will work  
I use `/Full-%d-%m-%Y` and a different name for the differential so try add a name prefix and see if it fixes it.  
Also that could be a waning message, are there older the 7 day backups.

---

<div class="post-metadata">

**Author:** ![hasse\_basse1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/hasse_basse1/32/5354_2.png) [@hasse\_basse1](https://forum.virtualmin.com/u/hasse_basse1)\
**Post date:** [February 23, 2025, 2:24pm UTC](https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279/3 "2025-02-23T14:24:53Z")

</div>

Thanks, I will try, but it works in AWS so why should it be different in Dropbox?

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [February 23, 2025, 3:03pm UTC](https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279/4 "2025-02-23T15:03:42Z")

</div>

> [@hasse\_basse1](#):
>
> AWS so why should it be different in Dropbox?

Perhaps because Dropbox is not AWS?  
though really you should concentrate on the error message

> HTTP/1.0 409 Conflict  
> [https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409)

---

<div class="post-metadata">

**Author:** ![hasse\_basse1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/hasse_basse1/32/5354_2.png) [@hasse\_basse1](https://forum.virtualmin.com/u/hasse_basse1)\
**Post date:** [February 23, 2025, 5:21pm UTC](https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279/5 "2025-02-23T17:21:52Z")

</div>

Let’s see if ChatGPT is my friend. I asked

`What is wrong with this?%Y-%m-%d-%T`

and had the below answer

`The issue is with the `%T`specifier. In many implementations,`%T`expands to the time in the format`HH:MM:SS`, which includes colons. These colons can cause conflicts in file naming conventions for some systems or APIs, such as Dropbox. If you need the time component, consider using `%H-%M-%S` instead, or remove the time part if it isn’t necessary.`

`When writing files, the system might accept the colons produced by `%T` because the file creation process isn’t as strict about special characters, or it properly encodes them. However, the deletion process typically involves listing files using pattern matching. In that context, the colons can interfere with the matching logic or even be interpreted as reserved characters by the API, resulting in a conflict error when attempting to list or delete those files`

So now I have changed to `%H-%M-%S` I’ll let you know the outcome.

---

<div class="post-metadata">

**Author:** ![hasse\_basse1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/hasse_basse1/32/5354_2.png) [@hasse\_basse1](https://forum.virtualmin.com/u/hasse_basse1)\
**Post date:** [February 23, 2025, 6:31pm UTC](https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279/6 "2025-02-23T18:31:09Z")

</div>

I guess you are right, and then it is something wrong with Virtualmins handling of Dropbox. The full error message is

> Deleting backups from local file /usr/share/webmin/virtual-server/dropbox:///Backup/Virtualmin/Dolibarr-Bjar/Differential/%Y/%m/%d matching ._-._-.\* older than 1 days …
> 
> … failed to list Dropbox files : HTTP/1.0 409 Conflict

It can’t even list the Dropbox files and then it is outside my control. I will have to delete them manually from Dropbox even in the future.

---

<div class="post-metadata">

**Author:** ![hasse\_basse1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/hasse_basse1/32/5354_2.png) [@hasse\_basse1](https://forum.virtualmin.com/u/hasse_basse1)\
**Post date:** [February 23, 2025, 6:31pm UTC](https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279/7 "2025-02-23T18:31:34Z")

</div>

This didn’t help.

---

<div class="post-metadata">

**Author:** ![hasse\_basse1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/hasse_basse1/32/5354_2.png) [@hasse\_basse1](https://forum.virtualmin.com/u/hasse_basse1)\
**Post date:** [February 24, 2025, 9:19am UTC](https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279/8 "2025-02-24T09:19:53Z")

</div>

As a Pro subscriber I got an answer from Ilia, and it solved the problem

> I highly doubt that it is realistically possible, or at the very least would be quite difficult for us, to make old backups cleaning work for `%Y/%m/%d` . I would highly recommend using `%Y-%m-%d-%H:%M` instead and giving it another try.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [March 4, 2025, 9:20am UTC](https://forum.virtualmin.com/t/deleting-files-and-folders-in-dropbox-does-not-work/132279/9 "2025-03-04T09:20:32Z")

</div>

Closed on March 4, 2025, 9:20am UTC

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
