public function destroyTemplate($templatePath)
{
// check if key exists in config, if so unset it
$configContents = $this->ConfigFileManager->getAppOnly('devise.templates');
if (isset($configContents[$templatePath])) {
unset($configContents[$templatePath]);
return $this->ConfigFileManager->saveToFile($configContents, 'templates');
}
$this->errors = 'Failed to remove template, path unrecognized.';
return false;
}