Monday, November 08, 2010 at 12:07 AM.
system.verbs.builtins.xml.aggregator.rpcHandlers.deleteItem
on deleteItem (itemId, username, password) { <<Changes <<11/6/02; 1:53:34 PM by JES <<Created. Delete an item. xml.aggregator.securityForRpc (client, username, password); local (adrdata = xml.aggregator.init ()); local (adrstories = @adrdata^.stories); local (adritem = @adrstories^.[string.padWithZeros (itemId, 8)] ); if not defined (adritem^) { scriptError ("Can't delete the item because there is no item with an id of \"" + itemId + "\".")}; adrdata^.trash.[nameOf (adritem^)] = adritem^; delete (adritem); return (true)}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.