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

    when you delete image from web gui doesnt delete from dir

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    5
    405
    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.
    • R
      robertkwild
      last edited by

      hi all,

      when i delete an image from the web gui, when i ssh into my server and do a

      ls /images

      i still see it there so it doesnt look like when you delete it from the web gui images, it doesnt delete it on the server

      i can do a

      rm -rf /images/test

      can anyone please tell me why this happens?

      thanks,
      rob

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @robertkwild
        last edited by

        @robertkwild This is expected behavior.

        When you delete an image from the UI, there’s a checkbox to confirm you want to delete the associated files as well. This is not present when you delete the image definition from the list definition.

        It’s intended. The image data contains actual data. So just deleting the files can be unsafe. People make mistakes all the time, but to have to recreate the entire image (including the data) simply because somebody deleted the definition unknowningly? By adding in a check to ensure you mean to delete it, we save you some time.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        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

        1 Reply Last reply Reply Quote 0
        • R
          robertkwild
          last edited by

          thanks @Tom-Elliott is it ok to ssh in and do a rm -rf on the test dir?

          1 Reply Last reply Reply Quote 0
          • R
            robertkwild
            last edited by

            i did a rm -rf test, now when i look on the dashboard it has now got the right size

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @robertkwild
              last edited by

              @robertkwild Yes, it’s perfectly safe for you to manually deleted the image directory/files. You are the administrator.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              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

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

              198

              Online

              12.1k

              Users

              17.3k

              Topics

              155.4k

              Posts
              Copyright © 2012-2024 FOG Project