Add support to the onDelete config option