# Deleting Files on B2 not working because old DB not found

**URL:** <https://forum.duplicati.com/t/deleting-files-on-b2-not-working-because-old-db-not-found/15646>\
**Category:** Support\
**Tags:** bug\
**Created:** [January 26, 2023, 11:07am UTC](https://forum.duplicati.com/t/deleting-files-on-b2-not-working-because-old-db-not-found/15646 "2023-01-26T11:07:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [January 27, 2023, 8:04pm UTC](https://forum.duplicati.com/t/deleting-files-on-b2-not-working-because-old-db-not-found/15646/4 "2023-01-27T20:04:22Z")

</div>

> [@Ralf](#):
>
> I don’t know which DBs originally were involved with these backups.

It would have been good to have noted them, but folder they’re in defaults to a user profile folder.

`C:\Users\<Duplicati user account>\AppData\Local\Duplicati\` for a regular user install.  
`C:\Windows\system32\config\systemprofile\AppData\Local\Duplicati` for service install.  
One just above is if Windows service runs as SYSTEM (default) and is protected from most users.

What were you and are you now running as what user? Is commandline [GUI](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#using-the-command-line-tools-from-within-the-graphical-user-interface) or Windows prompt?  
An ordinary user name doesn’t matter, but SYSTEM is special and somehow you’re referencing it.  
Switching between GUI and GUI Commandline and true CLI can be confusing for verious reasons.

> [@Ralf](#):
>
> I assume the reference comes from the files stored on B2

The files stored on B2 neither know nor need to know where your local database is. That’s local.

> [@Ralf](#):
>
> Delete command works without dbpath

It cannot work without a [database](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#database-management). A [dbpath](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#dbpath) is one of many ways to say where that is. More [here](https://forum.duplicati.com/t/cannot-restore-a-file/15580/3).

> [@Ralf](#):
>
> the same B2 behavior as mentioned

Which behavior? I assume you read enough to find that downloads are a normal part of compact.

EDIT:

> [@Ralf](#):
>
> I had to reset my jobs a while back and have created new DBs in the process.

We’ll see if a description of that will be needed, but one way to delete database and remote is below.  
Note that the default is to delete the database but not the remote (which makes disasters less likely).

 ![image](https://forum.duplicati.com/uploads/default/original/2X/e/e02cdaf38176d090272b3cd3842f325e405c8231.png)

---

_[View the full topic](https://forum.duplicati.com/t/deleting-files-on-b2-not-working-because-old-db-not-found/15646)._
