Refactor button Delete value, add new method deleteData().