Don't use close buttons for delete actions
A close button is only for dismissing or closing its parent component, not for taking a destructive action (like deleting a file). Use an action button instead.
A close button is only for dismissing or closing its parent component, not for taking a destructive action (like deleting a file). Use an action button instead.