public function deleteVocabularyByName($name) {
    $vocabulary = $this->vocabulary->where('name', $name)->first();

    if (!is_null($vocabulary)) {
      return $vocabulary->delete();
    }

    return FALSE;
  }
public function deleteVocabularyByName($name) {
    $vocabulary = $this->vocabulary->where('name', $name)->first();

    if (!is_null($vocabulary)) {
      return $vocabulary->delete();
    }

    return FALSE;
  }
public function deleteVocabularyByName ( $ name ) { $ vocabulary = $ this -> vocabulary -> where ( 'name' , $ name ) -> first ( ) ; if ( ! is_null ( $ vocabulary ) ) { return $ vocabulary -> delete ( ) ; } return FALSE ; }
Delete a Vocabulary by name

@param string $name
The name of the Vocabulary to delete

@return bool
TRUE if Vocabulary is deletes, otherwise FALSE
Delete a Vocabulary by name