How to redirect view when record deleted in javaScript in Power Apps

Here is the cide. You have to use NavigateTo API.