Delete profile

Description#

Allows clients to permanently delete their account.

Validation#

  • This function cannot be activated if the user didn't create a profile.
  • This function cannot be activated while the client has an active orders to prevent undefined behaviour.

Mechanism#

  1. Activate delete credit card recursively on all the client's credit cards.
  2. Activate delete saved address recursively on all the client's saved addresses.
  3. Delete the following data from the client
    • First name
    • Last name
    • Phone number
    • Email
  4. Change Entity propertyDeleted to Valuetrue