/**
  * Delete store and store locations in mongoDB
  */
 public function actionDelete($id)
 {
     $params = $this->getParams();
     $storeId = new MongoId($id);
     $token = Token::getToken();
     $store = Store::findByPk($storeId);
     //delete qrcode
     Store::deleteStoreAllQrcode($store);
     Store::deleteAll(['_id' => $storeId]);
     $location = $store->location;
     unset($location['detail']);
     $args = ['removeLocation' => $location, 'storeId' => (string) $storeId, 'accountId' => (string) $token->accountId, 'description' => 'Direct: Delete store location from storeLocation collection'];
     Yii::$app->job->create('backend\\modules\\member\\job\\Location', $args);
 }