Log in
Model

DeleteCustomer

Magento\CustomerGraphQl\Model\Customer\DeleteCustomer

What it does

This class handles the deletion of customer accounts in Magento 2's GraphQL API.

Developers use this model when implementing the customer account deletion mutation in GraphQL, as it wraps the core customer repository delete operation and converts standard exceptions to GraphQL-specific exceptions for proper API error handling.

Public Methods

  • execute()