select only the cells you want to delete instead of the entire row (hold down the
Ctrl key if you need to select non-contiguous ranges), right-click and choose
Delete…:
2022-06-15_163332.png
Choose to shift cells up:
2022-06-15_163657.png
and you're left with:
2022-06-15_163833.png