Media tasks¶
Clean orphan media files¶
Introduced in Mobilizon 1.0.3
Manually run the cleaning of orphan media files.
sudo -u mobilizon ./bin/mobilizon_ctl media.clean_orphan [<options>]
docker compose exec mobilizon mobilizon_ctl media.clean_orphan [<options>]
MIX_ENV=prod mix mobilizon.media.clean_orphan [<options>]
Options¶
-v
,--verbose
List the files that were deleted. Implied when using--dry-run
.-d
,--days
The number of days after which a media file is considered an orphan--dry-run
Run the task, but don't delete media files, just list them. Implies--verbose
.
Last update: August 11, 2023