The Javascript handler deleteProperty() method removes a property entirely from the target object.
Syntax:
deleteProperty: function(target, property)
Parameters:
target: It represents the target object.
property: It represents the property to be deleted.
Return:
Returns true if the specified property is deleted successfully otherwise returns false.
Example:
<!DOCTYPE html> <html> <body> <script> var handler = new Proxy({}, { deleteProperty: function(x,y) { document.writeln(y); return true; } }); delete handler.deleted_property; </script> </body> </html>