[BUGFIX] delete thumbs when media is deleted

__Tasks:__

- [ ] gather feedback for my changes
- [ ] submit changes to the documentation


__Informations:__

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Tests pass?   | none
| Fixed tickets | none
| Doc           | none