How to create Guest Empty Cart quote programmatically in Magento 2?

Magento 2, You can create Guest or anonymous customer empty quote programmatically using Magento\Quote\Api\GuestCartManagementInterface class.

You can create quote entry using GuestCartManagementInterface interface, Interface mapped to GuestCartManagement.php class.

You have to pass dependency to construct a function to create a guest quote.

Enable a customer or guest user to create an empty cart and quote for an anonymous customer using below way,

Call createEmptyCart function and you can create automatically quote for guest.

You can see quote entry generated in database table like, quote, quote_address and quote_id_mask table with new entry are generated.