code: protected void doDelete(final ItemData item, final WorkspaceStorageConnection con, ChangedSizeHandler sizeHandler)
        throws RepositoryException, InvalidItemStateException
     {
  
        if (item.isNode())
        {
           con.delete((NodeData)item);
        }
        else
        {
           con.delete((PropertyData)item, sizeHandler);
        }
     }
docs: Performs actual item data deleting.
  
  @param item
  to delete
  @param con
  @param sizeHandler
  @throws RepositoryException
  @throws InvalidItemStateException
  if the item is already deleted