# How do I empty the trash?

**URL:** <https://forum.storj.io/t/how-do-i-empty-the-trash/15485>\
**Category:** troubleshooting\
**Tags:** trash\
**Created:** [September 28, 2021, 11:11pm UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485 "2021-09-28T23:11:08Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![lyoth](https://storj.bcdn.literatehosting.com/letter_avatar/lyoth/32/5_5575768a8748004e209b776fc1b2916d.png) [@lyoth](https://forum.storj.io/u/lyoth)\
**Post date:** [May 12, 2024, 5:10am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/81 "2024-05-12T05:10:55Z")

</div>

It is a bug, I encountered the same thing many many version back

---

<div class="post-metadata">

**Author:** ![jammerdan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jammerdan/32/1121_2.png) [@jammerdan](https://forum.storj.io/u/jammerdan)\
**Post date:** [May 12, 2024, 5:29am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/82 "2024-05-12T05:29:14Z")

</div>

> [@lyoth](#):
>
> It is a bug,

It should be this

> [@After disabling lazy mode the filewalkers didn't print anything to the logs](https://forum.storj.io/t/after-disabling-lazy-mode-the-filewalkers-didnt-print-anything-to-the-logs/25757):
>
> I wonder what message from the none lazy filewalker we should see in the log when it starts? I had the lazy one disabled and there was no filewalker message after 5 days. So I switched back to lazy filewalker. Is the none lazy filewalker even functional in latest releases?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 12, 2024, 7:56am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/83 "2024-05-12T07:56:34Z")

</div>

> [@donald.m.motsinger](#):
>
> Also, I don’t think that I set `storage2.piece-scan-on-startup: false` right away when this setting got introduced. So I would expect `used-space-filewalker` in the logs of some nodes in the past.

This is weird, because my nodes on v1.102.3 have these log records. And I run two docker nodes and one Windows service node. All have lazy and scan enabled.  
What’s your storagenode version?

---

<div class="post-metadata">

**Author:** ![donald.m.motsinger](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/donald.m.motsinger/32/71_2.png) [@donald.m.motsinger](https://forum.storj.io/u/donald.m.motsinger)\
**Post date:** [May 12, 2024, 10:26am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/84 "2024-05-12T10:26:56Z")

</div>

> [@Alexey](#):
>
> This is weird, because my nodes on v1.102.3 have these log records. And I run two docker nodes and one Windows service node. All have lazy and scan enabled.  
> What’s your storagenode version?

I have `--pieces.enable-lazy-filewalker=false` as this was recommended everywhere when doing the startup scan. I wrote this multiple times here too.

All my nodes are on 1.102.3

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 12, 2024, 10:28am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/85 "2024-05-12T10:28:38Z")

</div>

> [@donald.m.motsinger](#):
>
> I have `--pieces.enable-lazy-filewalker=false` as this was recommended everywhere when doing the startup scan

It’s recommended to fix the not updated trash on the dashboard, otherwise it’s better to run it in a lazy mode. I run it with a lazy mode enabled, because I do not care about cosmetic values for the trash on the dashboard.  
However, it could be a culprit of not showing logs entries as mentioned above.

---

<div class="post-metadata">

**Author:** ![donald.m.motsinger](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/donald.m.motsinger/32/71_2.png) [@donald.m.motsinger](https://forum.storj.io/u/donald.m.motsinger)\
**Post date:** [May 12, 2024, 2:58pm UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/86 "2024-05-12T14:58:44Z")

</div>

> [@Alexey](#):
>
> It’s recommended to fix the not updated trash

I thought that’s what we’re talking about here. Read the whole sentence you just quoted. Of course I have it enabled otherwise.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 12, 2024, 3:06pm UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/87 "2024-05-12T15:06:18Z")

</div>

Yes. I didn’t explain, what’s that mean, sorry!

If you are on the version before 1.104.x, the trash information is not updated on the dashboard (but accounted properly),  
In that case you need to disable the lazy mode if you want to have an updated info related to the trash, even if it’s not important for the node.

if your node is on 1.104.x, it should update this info, thus you do not need to disable a lazy mode anymore.

---

<div class="post-metadata">

**Author:** ![mr.Viking](https://storj.bcdn.literatehosting.com/letter_avatar/mr.viking/32/5_5575768a8748004e209b776fc1b2916d.png) [@mr.Viking](https://forum.storj.io/u/mr.Viking)\
**Post date:** [May 19, 2024, 8:54am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/88 "2024-05-19T08:54:18Z")

</div>

The main problem is not in cosmetic values, but in the fact that a new data does not come because disk is “full”.  
I had to finish filewalker with lazy turned off (it took about a week) and as a result, the values ​ ​ did not change:

 ![image](https://storj-s3.bcdn.literatehosting.net/original/3X/8/4/843b490683fca0b85a8458eb8b5dc16e6e583522.png)  
But in fact, some of the garbage was removed from the disk even before the filewalker was launched:  
 ![image](https://storj-s3.bcdn.literatehosting.net/original/3X/2/5/2505eb6e79701c29d5218a5ba941ad369ad6a844.png)  
How do I start getting ingress? Restart filewalker again and wait another week in the hope that the dashboard will be updated?  
Now I will have to run filewalker on nodes with a “full” disk all the time so that the node understands that there is free space?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 19, 2024, 9:00am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/89 "2024-05-19T09:00:03Z")

</div>

> [@mr.Viking](#):
>
> I had to finish filewalker with lazy turned off (it took about a week) and as a result, the values ​ ​ did not change:

Then you have an error related to the databases update, there is no other way.  
Please check that your databases are not corrupted:

> **[How to fix a "database disk image is malformed"](https://support.storj.io/hc/en-us/articles/360029309111-How-to-fix-a-database-disk-image-is-malformed)**
>
> Problem
> Sometimes a Storage Node Operator may encounter the "database disk image is malformed" error in their log. This could happen during unplanned shutdown or reboot. The error indicates that on...

---

<div class="post-metadata">

**Author:** ![mr.Viking](https://storj.bcdn.literatehosting.com/letter_avatar/mr.viking/32/5_5575768a8748004e209b776fc1b2916d.png) [@mr.Viking](https://forum.storj.io/u/mr.Viking)\
**Post date:** [May 19, 2024, 9:00am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/90 "2024-05-19T09:00:56Z")

</div>

Already checked. All fine.  
 ![image](https://storj-s3.bcdn.literatehosting.net/original/3X/b/0/b02b41b22f3db3d3eb2abcab83ae136d25548c5c.png)

---

<div class="post-metadata">

**Author:** ![snorkel](https://storj.bcdn.literatehosting.com/letter_avatar/snorkel/32/5_5575768a8748004e209b776fc1b2916d.png) [@snorkel](https://forum.storj.io/u/snorkel)\
**Post date:** [May 19, 2024, 9:04am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/91 "2024-05-19T09:04:17Z")

</div>

Delete the Trash and hope you won’t get DQed in the next 7 days. But you need one more Filewalker run after that.

---

<div class="post-metadata">

**Author:** ![mr.Viking](https://storj.bcdn.literatehosting.com/letter_avatar/mr.viking/32/5_5575768a8748004e209b776fc1b2916d.png) [@mr.Viking](https://forum.storj.io/u/mr.Viking)\
**Post date:** [May 19, 2024, 9:05am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/92 "2024-05-19T09:05:27Z")

</div>

The garbage from a disk is removed normally. The problem is that the node doesn’t see it

---

<div class="post-metadata">

**Author:** ![mr.Viking](https://storj.bcdn.literatehosting.com/letter_avatar/mr.viking/32/5_5575768a8748004e209b776fc1b2916d.png) [@mr.Viking](https://forum.storj.io/u/mr.Viking)\
**Post date:** [May 19, 2024, 9:06am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/93 "2024-05-19T09:06:04Z")

</div>

I have more than 10 “full” nodes, but in fact there is already a lot of free disk space after garbage removal.

---

<div class="post-metadata">

**Author:** ![snorkel](https://storj.bcdn.literatehosting.com/letter_avatar/snorkel/32/5_5575768a8748004e209b776fc1b2916d.png) [@snorkel](https://forum.storj.io/u/snorkel)\
**Post date:** [May 19, 2024, 9:07am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/94 "2024-05-19T09:07:56Z")

</div>

Where are the db-es located? On the storage drive? Or on a SSD or a USB3 SSD flash drive?  
If not, you should consider moving them. I have coming some Corsair flash drives with SSD tech. They will be more than enough to keep databases happy.  
Try to vacuum them, also.  
[https://forum.storj.io/t/database-maintenance-integrity-check-vacuum/25047](https://forum.storj.io/t/database-maintenance-integrity-check-vacuum/25047)

---

<div class="post-metadata">

**Author:** ![mr.Viking](https://storj.bcdn.literatehosting.com/letter_avatar/mr.viking/32/5_5575768a8748004e209b776fc1b2916d.png) [@mr.Viking](https://forum.storj.io/u/mr.Viking)\
**Post date:** [May 19, 2024, 9:09am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/95 "2024-05-19T09:09:16Z")

</div>

All DB’s on nvme ssd.

---

<div class="post-metadata">

**Author:** ![snorkel](https://storj.bcdn.literatehosting.com/letter_avatar/snorkel/32/5_5575768a8748004e209b776fc1b2916d.png) [@snorkel](https://forum.storj.io/u/snorkel)\
**Post date:** [May 19, 2024, 9:10am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/96 "2024-05-19T09:10:41Z")

</div>

Hmm… that’s strange. Even my 1GB Syno, running 2 nodes of 7TB each, never had problems with db or dashboard.

---

<div class="post-metadata">

**Author:** ![mr.Viking](https://storj.bcdn.literatehosting.com/letter_avatar/mr.viking/32/5_5575768a8748004e209b776fc1b2916d.png) [@mr.Viking](https://forum.storj.io/u/mr.Viking)\
**Post date:** [May 19, 2024, 9:12am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/97 "2024-05-19T09:12:23Z")

</div>

Totally agree. That’s very strange and I lose ingress every day 🙂

---

<div class="post-metadata">

**Author:** ![snorkel](https://storj.bcdn.literatehosting.com/letter_avatar/snorkel/32/5_5575768a8748004e209b776fc1b2916d.png) [@snorkel](https://forum.storj.io/u/snorkel)\
**Post date:** [May 19, 2024, 9:14am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/98 "2024-05-19T09:14:40Z")

</div>

Did you check the permissions. Does the node have permission to delete the trash folder and files and write db-es? I’ve seen cases with problems at this points: owner and permissions.

---

<div class="post-metadata">

**Author:** ![mr.Viking](https://storj.bcdn.literatehosting.com/letter_avatar/mr.viking/32/5_5575768a8748004e209b776fc1b2916d.png) [@mr.Viking](https://forum.storj.io/u/mr.Viking)\
**Post date:** [May 19, 2024, 9:17am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/99 "2024-05-19T09:17:53Z")

</div>

Node removes garbage from the disk, so I assume that there are no rights problems. Each node is run under a unique id. All folders created by gc under this id. DB’s also with this id.

---

<div class="post-metadata">

**Author:** ![snorkel](https://storj.bcdn.literatehosting.com/letter_avatar/snorkel/32/5_5575768a8748004e209b776fc1b2916d.png) [@snorkel](https://forum.storj.io/u/snorkel)\
**Post date:** [May 19, 2024, 9:30am UTC](https://forum.storj.io/t/how-do-i-empty-the-trash/15485/100 "2024-05-19T09:30:18Z")

</div>

Does they show recent modification time?

[Previous page](https://forum.storj.io/t/how-do-i-empty-the-trash/15485.md?page=4)

[Next page](https://forum.storj.io/t/how-do-i-empty-the-trash/15485.md?page=6)
