We are deleting multiple records using mass action here. After deleting we are redirecting back to the same list view.
Please follow following four steps to create mass action button-
Step1. Create a extension with standardsetController
Step2. Create a vf page with recordSetVar attribute
Step3. Create a list button for this vf.
Step4. Add this list button to search layout.
Everytime is self explanatary.
Classic Mass Action Running Example
Lightning Mass Action Running Example



