public static function removeFile($filename, $public = true) {
        if ($public) {
            $path = public_path($filename);
        } else {
            $path = base_path($filename);
        }
        if (file_exists($path)) {
            unlink($path);
        } else {
            return false;
        }
    }