Modification of registration in a Google Sheets

Good afternoon master, hopefully an expert can help me. I'm just starting out in this... I have the following code that works fine for everything except for modifying a record in the sheets. It generates the UPDATE record in the sheets but doesn't delete the previous one... strangely, if I put that UPDATE routine alone, it works correctly... Can someone please help me?





Do you mean to delete the row in your upd function ?

image

You may also want to consider doing it this way

or use the native Spreadsheet component

I want to delete the line with the POST, I have that separate routine, and it does it perfectly, it deletes the POST line and leaves the new Update line with its changes.