HDS objects may be individually copied and deleted. The routines DAT_COPY and DAT_ERASE will recursively copy and erase all levels of the hierarchy below that specified in the subroutine call:
Note that we annulled the locator to the AXIS object before attempting to delete it. This whole operation can also be done using DAT_MOVE: