Devise\Media\Categories\Manager::destroyCategory PHP Method

destroyCategory() public method

Removes the category path
public destroyCategory ( $input ) : boolean
$input
return boolean
    public function destroyCategory($input)
    {
        if (isset($input['category'])) {
            $localPath = $this->CategoryPaths->fromDot($input['category']);
            $serverPath = $this->CategoryPaths->serverPath($localPath);
            return $this->Filesystem->deleteDirectory($serverPath);
        }
        return false;
    }