code: public void deleteElement(String elementId, final String relatedElementId) {
  
          elementId = getServerId(elementId);
          removeContainerElements(elementId);
          addToRecentList(elementId, null);
          reloadElements(new String[] {relatedElementId});
      }
docs: Deletes an element from the VFS, removes it from all containers and the client side cache.<p>
  
  @param elementId the element to delete
  @param relatedElementId related element to reload after the element has been deleted