I asked because I liked the idea so much ... and having it in a macro is not so confortable.
BTW, a minimalistic approach could be (suppose the addon name will be LazyDelete):
LazyDelete.toc
Lua Code:
## Interface: 60200
## Title: LazyDelete
## Notes: Remove the need to type DELETE to destroy items
## Author: Your Name
## Version: 1.0-2015090201
core.lua
core.lua
Lua Code:
StaticPopupDialogs.DELETE_GOOD_ITEM=StaticPopupDialogs.DELETE_ITEM
print("LazyDelete is ON")
It should suffices :-)