# Problem with data bases 

**URL:** <https://discourse.slicer.org/t/problem-with-data-bases/30840>\
**Category:** Support\
**Created:** [July 28, 2023, 1:17am UTC](https://discourse.slicer.org/t/problem-with-data-bases/30840 "2023-07-28T01:17:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mcgiler](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Mcgiler](https://discourse.slicer.org/u/Mcgiler)\
**Post date:** [July 28, 2023, 1:17am UTC](https://discourse.slicer.org/t/problem-with-data-bases/30840/1 "2023-07-28T01:17:29Z")

</div>

Hi,

Lately I changed the location of the DICOM files on my computer. Since then I’m not able to load patients because the file path is not existing.  
I was trying to remove the patients from the the DICOM database (by right click-\>delete) or by ‘remove all data sets’ (in the DICOM database settings) or to reinstall the program. All with no success.  
I was trying to just upload the new DICOM files again-did not help.

This is what I get in the Python Console:  
[Python] Warning: Warning: 481 of 481 selected files listed in the database cannot be found on disk.  
[Python] See python console for error message.  
[Qt] SQLITE ERROR: could not remove seriesInstanceUID 1.2.392.200036.9133.3.1.710358.4.20230501154541363  
[Qt] SQLITE ERROR: Unable to fetch row

is there a way to remove all patients from the database or change the files path?

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 28, 2023, 1:23am UTC](https://discourse.slicer.org/t/problem-with-data-bases/30840/2 "2023-07-28T01:23:38Z")

</div>

An easy way would be to change the database directory (database setting at bottom of DICOM module) and then re-import the files of interest from their new location.

---

<div class="post-metadata">

**Author:** ![Mcgiler](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Mcgiler](https://discourse.slicer.org/u/Mcgiler)\
**Post date:** [July 28, 2023, 11:49am UTC](https://discourse.slicer.org/t/problem-with-data-bases/30840/3 "2023-07-28T11:49:16Z")

</div>

Thank you for your replay

Unfortunately it’s not solving the problem.  
I’m also trying to create an new database in a new location but it failed.

Is there another way to remove data sets from the existing database? (not from the DICOM database settings)

thanks
