code: public function deleteRemap($sMethod)
      {
          //  Test that there's not an explicit method defined for this action
          $oUri    = Factory::service('Uri');
          $sMethod = 'put' . ucfirst($oUri->segment(4));
          if (method_exists($this, $sMethod)) {
              return $this->$sMethod();
          }
  
          // --------------------------------------------------------------------------
  
          $oHttpCodes = Factory::service('HttpCodes');
          $oItem      = $this->lookUpResource();
          if (!$oItem) {
              throw new ApiException(
                  'Resource not found',
                  $oHttpCodes::STATUS_NOT_FOUND
              );
          }
  
          $this->userCan(static::ACTION_DELETE, $oItem);
  
          if (!$this->oModel->delete($oItem->id)) {
              throw new ApiException(
                  'Failed to delete resource. ' . $this->oModel->lastError(),
                  $oHttpCodes::STATUS_INTERNAL_SERVER_ERROR
              );
          }
  
          return Factory::factory('ApiResponse', 'nails/module-api');
      }
docs: Deletes an existing resource
  
  @param string $sMethod The method being called
  
  @return array