Utils.Remove
class Utils.Remove
Contains the code we use to remove content.Method Inventory
- AfterRemoveItem()
- Remove()
- RemoveAll()
- RemoveArticles()
- RemoveItem()
- RemoveOld()
- RemoveSET()
- RemoveStructureGlobals()
Methods
Used by client method doRemoveDocument()
Remove all DocBook content from the database
Also clears out all caches based on loaded content
classmethod RemoveArticles(verbose As %Boolean = 0)
Remove a book or article from the database; return 1 if item was removed or return 0 otherwise.
classmethod RemoveOld(verbose As %Boolean = 0)
Loops through books & articles, checks each item against ^Settings("ITEMSTOLOAD"), and
removes the item if it is not in that list.
If ^Settings("ITEMSTOLOAD") is not populated, this method does nothing.
Remove a set and all its books from the database.
classmethod RemoveStructureGlobals(verbose As %Boolean = 0)