Skip to main content
Inspiring
March 20, 2009
Question

Removing Unused HTM files

  • March 20, 2009
  • 4 replies
  • 545 views
I inherited an old help file I needed to update. After the update, I find I have at least 150 pages which need to be removed because they're no longer used. All the pages I want to use are part of the default Table of Contents; if they're not in the TOC, they should be deleted. Is there any way to quickly identify those HTM files which are NOT part of the TOC? At the very least, I'd like these pages to be prevented from showing up in the search, though the best case scenario is the complete removal of these. The project includes over 1000 HTM files, so going through one-by-one would be massively time consumming.

I'm using RH 8.

Thank you in advance.
This topic has been closed for replies.

4 replies

GnorbXAuthor
Inspiring
March 20, 2009
@Ben: That was perfect, thank you! The pod was exactly what I was looking for.
RoboWizard
Inspiring
March 20, 2009
Hi there

In RoboHelp 8 you have the ability to display the Topic List pod. In that pod you have an option of viewing which (if any) TOC topics are a part of. You could click the heading to sort by TOC and see which topics aren't part of any TOC.

If you just want to hide them from searching, you could select them and display the properties. RoboHelp 8 has this way cool new feature whereby you may indicate at topic level whether it should be included in a search. This is done using Topic Properties on the General tab (I think - RH8 isn't in front of me at the moment)

Hopefully this helps... Rick
March 20, 2009
Hi,

In the Topic List pod, enable the TOC column if it's not there already (right-click the column titles and choose TOC). Then click the TOC column title to sort by that column--all the topics not in the TOC will be sorted together by "No." Then you can select them all using Shift+click and then delete them.

Another option if you're not prepared to totally blow them away would be to create a conditional build tag called something like "Unused." Using the same method above, locate and select all the unused topics. Right-click them and select Properties. On the Advanced tab, apply the Unused tag. Then, in your single source layout, set a conditional build expression that excludes the Unused tag. Those topics will be kept out of the output and out of the search.

--Ben
RoboColum_n_
Legend
March 20, 2009
In each RH project you can run an "Unused File" report that identifies all files (not just .htm files) that are no longer referenced anywhere. Provided your topics are no longer linked to, indexed, in baggage or have some other reference they will show up there. Just delete them in Windows Explorer. The reports are available from the Tools menu.