The wpReplaceObject method deletes the target object, copies the current object to the folder that contained the target object, then optionally deletes the current object (if the fMove parameter is set to TRUE).