# sw:media:cleanup --delete findet keine Bilder trotz gefüllten Papierkorb

**URL:** <https://forum.shopware.com/t/swcleanup-delete-findet-keine-bilder-trotz-gefullten-papierkorb/67774>\
**Category:** Allgemein\
**Created:** [18. Juni 2020 um 14:12 UTC](https://forum.shopware.com/t/swcleanup-delete-findet-keine-bilder-trotz-gefullten-papierkorb/67774 "2020-06-18T14:12:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_MikeB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/_mikeb/32/7856_2.png) [@\_MikeB](https://forum.shopware.com/u/_MikeB)\
**Post date:** [18. Juni 2020 um 14:12 UTC](https://forum.shopware.com/t/swcleanup-delete-findet-keine-bilder-trotz-gefullten-papierkorb/67774/1 "2020-06-18T14:12:59Z")

</div>

Hallo.

Seltsamerweise liefert funktioniert der Aufruf&nbsp;php bin/console sw:media:cleanup --delete teilweise nicht (Stagingsystem tut, Live nicht). Es wird lediglich folgende Ausgabe produziert:

## Searching for unused media files.

&nbsp;

In MediaCleanupCommand wird folgendes ausgeführt. Hier steigt er wohl bei handleMove() aus. Welche Gründe kann es dafür geben? Die temp-Tabelle „s\_media\_used“ wird auch nicht erstellt und gefüllt.

```
$io->section('Searching for unused media files.');
$total = $this->handleMove(); // HIER läuft wohl irgendwas schief!!!
$io->text(sprintf('%s unused item(s) found.', $total));

```

Hoffe jemand weiß warum?! Danke schon mal im Voraus.

Gruß Mike

---

<div class="post-metadata">

**Author:** ![TimmeHosting](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timmehosting/32/15580_2.png) [@TimmeHosting](https://forum.shopware.com/u/TimmeHosting)\
**Post date:** [20. Juni 2020 um 00:46 UTC](https://forum.shopware.com/t/swcleanup-delete-findet-keine-bilder-trotz-gefullten-papierkorb/67774/2 "2020-06-20T00:46:31Z")

</div>

Gibt es Fehlermeldungen in den Shopware-Logs?

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/385eaa628505df573ebf33722f780335f53ac1b2.png)

Timme Hosting - schnelles nginx-Hosting

[www.timmehosting.de](https://timmehosting.de/)

---

<div class="post-metadata">

**Author:** ![\_MikeB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/_mikeb/32/7856_2.png) [@\_MikeB](https://forum.shopware.com/u/_MikeB)\
**Post date:** [20. Juni 2020 um 05:28 UTC](https://forum.shopware.com/t/swcleanup-delete-findet-keine-bilder-trotz-gefullten-papierkorb/67774/3 "2020-06-20T05:28:11Z")

</div>

Hi. Nein garnichts das Hinweise geben könnte:(
