There should be an action which when called upon should factory reset the device without any prompt. There are many corporate, antitheft & otherwise scenarios where a data wipe are required. With tasker & logcat there can be a lot of profiles- a pre-defined fingerprint unlock or a remote wipe via SMS etc. Tasker would need to have "Erase all data" permission from device admin, from before-hand. Many people may be hesitant to give such permission to tasker, hence a plugin with such permission can be made. People who need the feature would use the plugin.