Change the status to "Completed" on the update set record. Then, you will notice a UI action called "Back Out" click on that and it will revert all your changes which you captured on that update set.
Undo/backout updates in local update set ServiceNow
Working Code Asked question August 19, 2024