Deleting only checked checkbox items

How to delete only checked items?
I use on device storage, i can delete all data at button click but i want delete only marked ones !