Delete a flow and ui objects connected to it are not deleted as well?

1 - Do you mean the configuration for the object?
2 - By "Delete a flow" do you mean deleting a tab the ui object is on, or deleting the flow that contains the ui object?
3 - can you give an example or an image of what you are doing?