// DeleteWorkflow Delete the specified workflow from the project
DeleteWorkflow Delete the specified workflow from the project
// DeleteWorkflow Delete the specified workflow from the project
func DeleteWorkflow(workflow string) (bool, error) {
	workflowsDirectory, err := getWorkflowsDirectory()
	if err != nil {
		return false, err
	}
	workflowsDirectoryExists, err := directoryExists(workflowsDirectory)
	if err != nil || !workflowsDirectoryExists {
		return false, err
	}
	workflowFile := filepath.Join(workflowsDirectory, workflow+workflowExtension)
	workflowFileExists, err := fileExists(workflowFile)
	if err != nil || !workflowFileExists {
		return false, err
	}
	err = os.Remove(workflowFile)
	if err != nil {
		return false, err
	}
	return true, nil
}
func DeleteWorkflow ( workflow string ) ( bool , error ) { workflowsDirectory , err := getWorkflowsDirectory ( ) if err != nil { return false , err } workflowsDirectoryExists , err := directoryExists ( workflowsDirectory ) if err != nil || ! workflowsDirectoryExists { return false , err } workflowFile := filepath . Join ( workflowsDirectory , workflow + workflowExtension ) workflowFileExists , err := fileExists ( workflowFile ) if err != nil || ! workflowFileExists { return false , err } err = os . Remove ( workflowFile ) if err != nil { return false , err } return true , nil }
DeleteWorkflow Delete the specified workflow from the project
DeleteWorkflow Delete the specified workflow from the project