code: public void deleteResource(String resourcename, CmsResource.CmsResourceDeleteMode siblingMode) throws CmsException {
  
          // throw the exception if resource name is an empty string
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(resourcename)) {
              throw new CmsVfsResourceNotFoundException(
                  Messages.get().container(Messages.ERR_DELETE_RESOURCE_1, resourcename));
          }
  
          CmsResource resource = readResource(resourcename, CmsResourceFilter.IGNORE_EXPIRATION);
          getResourceType(resource).deleteResource(this, m_securityManager, resource, siblingMode);
      }
docs: Deletes a resource given its name.<p>
  
  The <code>siblingMode</code> parameter controls how to handle siblings
  during the delete operation.<br>
  Possible values for this parameter are: <br>
  <ul>
  <li><code>{@link CmsResource#DELETE_REMOVE_SIBLINGS}</code></li>
  <li><code>{@link CmsResource#DELETE_PRESERVE_SIBLINGS}</code></li>
  </ul><p>
  
  @param resourcename the name of the resource to delete (full current site relative path)
  @param siblingMode indicates how to handle siblings of the deleted resource
  
  @throws CmsException if something goes wrong