Forumid's do not change when you delete a forum. If you've deleted forum with the forumid "6", using that id will just give you a no-forum-specified error. Everytime you add a new forum, it will increase the forumid by +1 from the last forum created. As far as I know, there's no way around this easily or you could really do some damage.