Hi @Rachid B
As far as I know, there is no such rest api for us to remove a user in sharelink. I will recommend you to achieve this by following graph api.
DELETE /sites/{site-id}/drive/items/{item-id}/permissions/{perm-id}
For more details
https://learn.microsoft.com/en-us/graph/api/permission-delete?view=graph-rest-beta&tabs=http
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.