Erases LISP data from a drawing dictionary
Supported Platforms: Windows only
(vlax-ldata-delete dict key [private])
Type: VLA-object or String
An object, AutoCAD drawing entity object, or a string naming a global dictionary.
Type: String
Dictionary key.
Type: T or nil
If a non-nil value is specified for private and vlax-ldata-delete is called from a separate-namespace VLX, vlax-ldata-delete deletes private LISP data from dict.
Type: T or nil
T, if successful; otherwise nil (for example, the data did not exist).
Add LISP data to a dictionary:
(vlax-ldata-put "dict" "key" '(1)) (1)
Use vlax-ldata-delete to delete the LISP data:
(vlax-ldata-delete "dict" "key") T
If vlax-ldata-delete is called again to remove the same data, it returns nil because the data does not exist in the dictionary:
(vlax-ldata-delete "dict" "key") nil