DELETE FROM xml_revisions WHERE docid ='tao.12107'; DELETE FROM xml_nodes_revisions where docid ='tao.12107';