Removes an element from a structure.
structDelete(structure, key [, indicateNotExisting])
→ returns boolean
someStruct.delete(key)
false
Creates a struct then removes a key
someStruct = {a=1,b=2};
structDelete(someStruct, "a");
writeDump(someStruct);
Expected Result: true
CF 11+ Lucee 4.5+ Invoking the delete function on a struct is the same as running structDelete.
someStruct = {a=1, b=2};
someStruct.delete('a');
writeDump(someStruct);
Expected Result: true
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.