Use a numeric argument for delete-selection-mode
Don't use the deprecated function.