/**
  * Deletes an existing RramatDocfiles model.
  * If deletion is successful, the browser will be redirected to the 'index' page.
  * @param string $id
  * @return mixed
  */
 public function actionDelete($id)
 {
     if (Yii::$app->request->isAjax) {
         $ar = $this->findModel($id);
         $id_docfiles = $ar->id_docfiles;
         if ($ar->delete()) {
             Proc::DeleteDocFile($id_docfiles);
         }
     }
 }