I would like to set up an icon (trashCan) and drag dhtmlXTr

I would like to set up an icon (trashCan) and drag
dhtmlXTree items to the icon and delete the item. Is it possible to retrieve
the ID of a dropped item when the item is dropped on a object that is NOT part
of the tree?

The dhtmlxTree supports dragOut to any items.

I’m having this same issue. I didn’t find the previous post helpful though. I know it’s possible to drag from tree to tree, but how do I drag from a tree to an image of a trash can and have it remove the node from the tree? Any help would be appreciated. Thanks in advance.

Place your image in a div and make a function, which checks, if the target object is this div:

if (target == "trashDiv"){ tree.deleteItem(id); }