Unassign the license to the User
1.In the Microsoft 365 Admin Center, Go to Active Users
*Select the user that you want to unassign the license
*Click on Licenses and apps
2.Click on the product name.
* We have Office 365 E3 trial license is available. Click on it
3. Unassign the license by sliding the button to the left
4. Scroll down and click on save changes
5.The changes have been saved and now you can see that the available license is 24 which was 23 earlier
6. Result