code: public static function destroy($id)
      {
          $ids = is_array($id) ? $id : [$id];
          foreach ($ids as $id) {
              $model = static::find($id);
              if (!is_null($model)) {
                  $model->delete();
              }
          }
      }
docs: Destroy the models by the given id.
  
  @param mixed $id