Issue #23070:correctly handle wotc when deleting closed wo