Note: This feature is available in Web Workers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The delete() method of the CrashReportContext interface deletes a previously-stored key-value pair.
delete(key)keyA string representing the key of the key-value pair to be deleted.
None (undefined).
InvalidStateError DOMExceptionThrown if:
initialize() call.window.crashReport.initialize(1024).then(() => {
// Set a possible crash-causing value, and try
// running an operation that may cause a crash
window.crashReport.set("crash-arg", "00031");
operationThatMightCrash("00031");
// Delete the key-value pair if it doesn't cause a crash
window.crashReport.delete("crash-arg");
});