deleting images and index.