@Priyanka Mathur, Thanks for posting in Q&A. If you want to delete a local user account from laptop, you can use PowerShell command to remove local account.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/remove-localuser?view=powershell-5.1
If the above command is working, then we can deploy the PowerShell script via Intune. Here is a link for your reference:
https://learn.microsoft.com/en-us/mem/intune/apps/intune-management-extension
Hope the above information can help.
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.