delete the old index and the old layout