Use document.update to first delete then update the document.
Authored by: mitchellkj01 2011-03-01
Parent: [r28]
Child: [r30]