implemented CmdDeleteUnusedRefPlanes