OptionalclearOptionalclearClear the currently assigned folder
OptionalclearClear document ownership (recursive)
OptionalclearClear the currently assigned sort order
OptionalclearClear any prior source information
OptionalclearClear fields which store document state (recursive)
OptionaldialogIn cases where necessary, prompt the user with a confirmation dialog
OptionalkeepRetain the current Document id
Clear the flags object