Lazer\Classes\Helpers\File::remove PHP Method

remove() final public method

final public remove ( )
    public final function remove()
    {
        $type = ucfirst($this->type);
        if ($this->exists()) {
            if (unlink($this->getPath())) {
                return TRUE;
            }
            throw new LazerException($type . ': Deleting failed');
        }
        throw new LazerException($type . ': File does not exists');
    }