Delete the old codes for writing subasins