code: protected void internalDeleteResource(final String resourcePath) {
  
          CmsRpcAction<Void> action = new CmsRpcAction<Void>() {
  
              @Override
              public void execute() {
  
                  start(0, false);
                  getGalleryService().deleteResource(resourcePath, this);
              }
  
              @Override
              protected void onResponse(Void result) {
  
                  stop(false);
                  updateResultsTab(false);
              }
          };
          action.execute();
      }
docs: Deletes a resource.<p>
  
  @param resourcePath the path of the resource to delete