1128-improve_functionality_on_account_remove_call
Description
Improve account remove callback code according to review: https://gitlab.e.foundation/e/os/backlog/-/issues/1128#note_382122.
- improve cache file removal call
- add preference check logic on widget check
- refactor code