After a while I figured it out, you need to use F(interact) on the bones(the ghost sits on top of the bones), they then change into a pile which you can pick up and place it into the hole you dig