code: public function deleteAction()
      {
          // @todo It's not necessary to specify a language, since the texts in all languages are removed.
  
          if (!preg_match('/\/page\/(\w+[\-\w]*)\/text\/..\/(\w+)$/', $this->name, $matches)) {
              throw new InvalidParameterException("Invalid parameters");
          }
          list($dummy, $pageName, $containerName) = $matches;
          $pageTexts = $this->getTextModel($pageName);
          $pageTexts->deleteTextContainer($containerName);
  
          $this->environment->sendJSONResult('ok');
      }
docs: Deletes a text container.
  
  @throws \justso\justapi\InvalidParameterException