Closed sumandari closed 3 years ago
test #1320 on staging:
===============================================================================
Entry's Media
------------------------------
All Entry media : 945 files 426.64 MB.
Unused Entry media : 166 files 74.77 MB.
All Media (exclude Entry model instance)
------------------------------
All Entry media : 1752 files 961.56 MB.
Unused Entry media : 521 files 374.18 MB.
Delete unused media images and files: 687 files, 448.95 MB? [Y] y
remove files...
remove /home/web/media/images/entries/8b51047c4dafca7eff4a9bf9468288b1ba406dc0.jpg
remove /home/web/media/images/entries/3d349be3b3f3185632bc5889786978359019077a.png
remove /home/web/media/images/entries/0849bfeb6305121a18a5457f2f95f66874346d12.png
remove /home/web/media/images/entries/103355731-61fcdf00-4a85-11eb-8e38-f745046f3730.gif
remove /home/web/media/images/entries/a5fcbea08ea9ffdd5b3e89e7812b14b5460ffcc7.png
remove /home/web/media/images/entries/be3985dc30de4607ab8aeacbf4288cc0a7dda720.png
remove /home/web/media/images/entries/70130218-70a97480-1680-11ea-9071-f3a1e2400af1.png
remove /home/web/media/images/entries/168e1cd2cc452e656c2a673dce4fa245ab56b2f0.png
remove /home/web/media/images/entries/99658744-3509e500-2a60-11eb-919e-858534d3e372.png
remove /home/web/media/images/entries/94795178-4c700e80-03dd-11eb-9f3e-30a7123c7bad.png
remove /home/web/media/images/entries/102950193-d4197500-4515-11eb-846a-8aaf63304bb7.png
remove /home/web/media/images/entries/8dc24d2b4f15f2440e1d3a6b164bc8e1339d8f97.png
remove /home/web/media/images/entries/85852152-6228d300-b7f3-11ea-96f3-b174fca02f05.png
remove /home/web/media/images/entries/3a3e5a731f57e008c4286ede82965b879964dd04.png
remove /home/web/media/images/entries/65e72d5e764212b9fdd49a82b02c3238c43077d2.png
<.... truncate the message for visibility >
All unused Entry images have been removed successfully.
imageswsgi-78dbddd884-b9t98:/home/web/django_project# ./manage.py remove_unused_i
<.... truncate the message for visibility >
===============================================================================
Entry's Media
------------------------------
All Entry media : 779 files 351.87 MB.
Unused Entry media : 0 files 0.0 MB.
All Media (exclude Entry model instance)
------------------------------
All Entry media : 1231 files 587.38 MB.
Unused Entry media : 0 files 0.0 MB.
cc @dimasciput
Remove the unused media to free up space.