Mass Deletion of Hosts



  • 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!



  • worked perfectly, thank you good sir!


  • Senior Developer

    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.


Log in to reply
 

410
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.