cypress backspace

JavaScript
cy.get('input').type('{backspace}')cy.get('whatever').type('Test all the things', { force: true });
Source

Also in JavaScript: