delete base and index