delet distince data from table in php : <p><a href="https://i.stack.imgur.com/sS1t3.png" rel="nofollow noreferrer">table</a></p>

<p>In these picture you can show one sql table in these table i have a coloum which name is "matrix_unique_id" in thst coloum i have many same id and in each id i store one image the image coloum name is    image_path.
Now i want to delete all the image in one unique id accept one image.For example:
in these 6665682 id i have 25 images now i want to delete all images accept one means when execute the query it delete 24 images and left one.</p>

<p>what i do?</p>
