The rows.remove() method removes the specified JavaScript Scheduler row.
DayPilot.Scheduler.rows.remove(row)row (DayPilot.Row | string | number) - row to remove; in addition to a DayPilot.Row object, the method also accepts the row ID
You can get a DayPilot.Row object using the rows.find() method.
const row = scheduler.rows.find("A");
scheduler.rows.remove(row);