# Cannot delete my account from my user profile

**URL:** <https://discuss.openedx.org/t/cannot-delete-my-account-from-my-user-profile/3382>\
**Category:** Site Operations Help\
**Created:** [October 8, 2020, 2:35pm UTC](https://discuss.openedx.org/t/cannot-delete-my-account-from-my-user-profile/3382 "2020-10-08T14:35:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadiastef](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nadiastef/32/1615_2.png) [@nadiastef](https://discuss.openedx.org/u/nadiastef)\
**Post date:** [October 8, 2020, 2:35pm UTC](https://discuss.openedx.org/t/cannot-delete-my-account-from-my-user-profile/3382/1 "2020-10-08T14:35:24Z")

</div>

Hello I want to ask you why I cannot delete my account from my user profile.

There is an error

 ![image](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/c/c9abd78bd165a3c1a574f6d63ba000bafb6ef08c.png)

---

<div class="post-metadata">

**Author:** ![idegtiarov](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/idegtiarov/32/275_2.png) [@idegtiarov](https://discuss.openedx.org/u/idegtiarov)\
**Post date:** [October 8, 2020, 7:00pm UTC](https://discuss.openedx.org/t/cannot-delete-my-account-from-my-user-profile/3382/2 "2020-10-08T19:00:19Z")

</div>

Hi @nadiastef it is a little bit hard to get an error from the messages they are not verbose enough and especially if the message is in Greek.  
Do you have an access to the logs? If yes, please share them in the thread.

---

<div class="post-metadata">

**Author:** ![nadiastef](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nadiastef/32/1615_2.png) [@nadiastef](https://discuss.openedx.org/u/nadiastef)\
**Post date:** [October 15, 2020, 11:11am UTC](https://discuss.openedx.org/t/cannot-delete-my-account-from-my-user-profile/3382/3 "2020-10-15T11:11:50Z")

</div>

The error message is Unable to delete account  
Sorry, there was an error trying to process your request. Please try again.

---

<div class="post-metadata">

**Author:** ![Manish\_Hada](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/manish_hada/32/1651_2.png) [@Manish\_Hada](https://discuss.openedx.org/u/Manish_Hada)\
**Post date:** [October 15, 2020, 1:04pm UTC](https://discuss.openedx.org/t/cannot-delete-my-account-from-my-user-profile/3382/4 "2020-10-15T13:04:22Z")

</div>

This is very hard to identify by message.

> there was an error trying to process your request. Please try again

it is very generic message, this message comes due to many reasons, It would be good if you look into lms log of server. As you check your log, it will give you any clue automatically or please paste that log error here then only people can help you out.

---

<div class="post-metadata">

**Author:** ![nadiastef](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nadiastef/32/1615_2.png) [@nadiastef](https://discuss.openedx.org/u/nadiastef)\
**Post date:** [October 15, 2020, 1:59pm UTC](https://discuss.openedx.org/t/cannot-delete-my-account-from-my-user-profile/3382/5 "2020-10-15T13:59:24Z")

</div>

[logs.txt](https://discuss.openedx.org/uploads/short-url/f8UOCrgAqnJ6PlEmZ6vWC7ovNo1.txt) (278.8 KB)

---

<div class="post-metadata">

**Author:** ![ehsan\_ahmadi](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ehsan_ahmadi/32/534_2.png) [@ehsan\_ahmadi](https://discuss.openedx.org/u/ehsan_ahmadi)\
**Post date:** [October 26, 2020, 12:56pm UTC](https://discuss.openedx.org/t/cannot-delete-my-account-from-my-user-profile/3382/6 "2020-10-26T12:56:19Z")

</div>

I think error is this:

```
500 error deactivating account Default state does not exist!

```

and I found this doc, hope it help

> **[4.25.2. Setting Up User Retirement in the LMS — Installing, Configuring, and...](https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/user_retire/service_setup.html#retirement-states)**

---

<div class="post-metadata">

**Author:** ![icarrr](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/icarrr/32/300_2.png) [@icarrr](https://discuss.openedx.org/u/icarrr)\
**Post date:** [October 14, 2021, 11:23am UTC](https://discuss.openedx.org/t/cannot-delete-my-account-from-my-user-profile/3382/7 "2021-10-14T11:23:21Z")

</div>

Hi @nadiastef  
I’ve solve this issue using this command

```bash
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
./manage.py lms --settings=production populate_retirement_states

```

Tested on release juniper.master

Thanks
