code: public function delRuntime(Request $request)
      {
          // 路径
          $path = $request->param('path');
          $path = $path ? base64_decode($path) : '/';
          
          // 是否删除自己
          $self = $request->param('self', 0);
          
          // 跳转链接
          $url = Url::build('runtime', [
              'path' => base64_encode($self ? RuntimeLogic::dirName($path) : $path)
          ]);
          
          // 删除缓存
          $res = RuntimeLogic::delRuntime($path, $self);
          if ($res) {
              return $this->success('删除文件成功', $url);
          } else {
              return $this->error('删除文件失败');
          }
      }
docs: 删除缓存
  
  @param Request $request
  @return mixed