code: public static function deleteResource($strResource)
  	{
  		$objModel = FilesModel::findByPath($strResource);
  
  		// Remove the resource
  		if ($objModel !== null)
  		{
  			$objModel->delete();
  		}
  
  		// Look for subfolders and files
  		$objFiles = FilesModel::findMultipleByBasepath($strResource . '/');
  
  		// Remove subfolders and files as well
  		if ($objFiles !== null)
  		{
  			while ($objFiles->next())
  			{
  				$objFiles->delete();
  			}
  		}
  
  		static::updateFolderHashes(\dirname($strResource));
  
  		return null;
  	}
docs: Removes a file or folder
  
  @param string $strResource The path to the file or folder
  
  @return null Explicitly return null