Delete confirmation for items within a modal

I have a modal that contains a table of items. Each item is in a row and a user should be able to edit/delete each item.

When deleting an item, there needs to be a confirmation dialog asking the user to confirm the deletion.

The problem with that is a dialog box will be sitting on top of the modal - so it's essentially a modal on top of a modal.

Is it ok to just display the dialog without the modal behind it?

Please note that time is limited for this issue, so we couldn't spend a lot of time on a more complex, albeit better, solution.