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

    Mass Deletion of Hosts

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    951
    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.
    • M
      mlnancejr8808
      last edited by

      Hello fellow FOGGERS,
      I was just curious if there was a way to mass delete all hosts in the database. I am wanting to delete all hosts to basically clean up FOG, I have been piggybacking off of previous admins that were here and I and dissatisfied with the way things are. Please let me know! It would be much appreciated!

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

        The easiest method for this is to logon to your mysql server as root. Then type the command:
        [code]truncate table hosts;[/code]

        That will remove all hosts from the database.

        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
        • M
          mlnancejr8808
          last edited by

          worked perfectly, thank you good sir!

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

          282

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project