#cy.removeScratch()
// Remove all keys
cy.removeScratch(): thisDelete graph-level scratch keys.
Returns
thisthis core, for chaining
Example
cy.scratch('temporary', 1);cy.removeScratch();console.log(cy.scratch('temporary')); // undefined#cy.removeScratch(names)
// Remove the specified keys
cy.removeScratch(names: string): thisDelete graph-level scratch keys.
| Name | Description |
|---|---|
names: string | space-separated key names; omit to clear everything |
Returns
thisthis core, for chaining
Example
cy.scratch('temporary', 1);cy.removeScratch('temporary');console.log(cy.scratch('temporary')); // undefined