Remove Number Of Pagination [closed]

Check the function which outputs pagination. It could look like this:

<?php the_posts_pagination( array(
    'mid_size' => 2,
    'prev_text' => __( 'Prev', 'textdomain' ),
    'next_text' => __( 'Next', 'textdomain' ),
) ); ?>

You need to change mid_size parameter. This parameter determines how many page numbers to display to either side of the current page.
So try change to
'mid_size' => 1

https://codex.wordpress.org/Function_Reference/the_posts_pagination