• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Deleting an image in the web UI is not removing it from the server.

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    833
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      devrick
      last edited by devrick

      When I delete an image from the FOG web UI it will remove it from there, but the storage space stays the same. The image is located in /images on the server. I am running CentOS 8. I believe that it may be a permissions issue, but when I log in with the management user I am able to manually delete the image from the server’s backend. Thank you for your help.

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @devrick When you delete an image from the list/search view by marking the checkbox and click the “Delete” button this will only remove the image definition from the database but won’t delete the files from disk. This is by intention because we want to prevent people from marking several images unintentionally and delete those forever.

        If you want to have the image files deleted through the web UI you need to open the image settings for one particular image, go to the “Delete” tab at the top, then check “Delete files” and hit the “Delete” button.

        If you want to delete image files manually now that you have removed those from the database/web UI you can run Linux rm command to delete specific folders in /images. Make sure you know how the rm command works using some test files/directories before you blindly go ahead.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        D 1 Reply Last reply Reply Quote 1
        • D
          devrick @Sebastian Roth
          last edited by

          @sebastian-roth Thank you for your help. I just saw from a recent post exactly that, here.

          @george1421 said in Make room on fog server's storage:

          @sjensen If you delete the image from the image list (not from within the image definition) the deletion action will only remove the list entry and leave the raw files behind. If you go into the image record and delete the image from there, there is a checkbox to also remove the raw files (or something named similar). This will purge the files from the disk.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          174

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project