A newer version of the Gradio SDK is available: 5.49.1
5.49.1
Object.clear
Deletes all own, enumerable, non-symbol properties in the object
const clear = require("ext/object/clear"); const obj = { foo: "bar" }; clear(obj); Object.keys(obj); // []