How to delete image from device ? - ionic

I try .splice but it’s not work

<ion-content padding>
<ion-list [virtualScroll]="imageList">
<ion-item *virtualItem="let item">
<ion-icon name="trash" class="deleteIcon" (click)="removeItem(item)"></ion-icon>
<ion-img [src]="item" class="thumb-img" (click)="presentModal(item)"></ion-img>
</ion-item>
</ion-list>
</ion-content>
removeItem(item) {
for (let i = 0; i < this.imageList.length; i++) {
if (this.imageList[i] == item) {
this.imageList.splice(i, 1);
}
}
}

after click delete icon image was lost after close and open app those images is com back.

Splice just removes the image from the array. You’ll need to use the Ionic Native File plugin to actually delete the file.

Thank you very much.