1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot Reproduce Media not deleted after uninstall

Discussion in 'Media Gallery Resolved Bugs' started by Rigel Kentaurus, Jan 19, 2015.

  1. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    I uninstalled Media Gallery

    It doesn't seem like it cleaned up correctly

    Screenshot 2015-01-19 09.03.30.png

    And the actual data is probably still in the FileSystem
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Now run:

    Code:
    SELECT COUNT(*) FROM xf_attachment WHERE content_type = 'xengallery_media' AND unassociated = 0
    This works basically the same way as if the media was deleted one at a time, or if a post is deleted, etc.

    It is marked as unassociated and removed from the database and file system properly during clean up processes. It can take up to 24 hours depending on when the media was attached.

    The same uninstall procedure happens in the Resource Manager, for reference.
     
  3. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Certainly after running the daily_cleanup process all the attachments from the table went away.
    My 20Gb of space are nowhere to be found, though. I'll do further research and reopen if necessary. Thanks for the response.
     
  4. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    This on data after uninstall and after the daily clean up (on latest version, fresh import)

    # find ./xengallery/ | wc -l
    95357

    # du -hs xengallery/
    6.6G xengallery/
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    That's expected. We clean up the attachment internal data but not the thumbnails. They can easily be identified though as they are in their own directory. Just remove the directory.
     

Share This Page