# How to delete all posts for an admin

**URL:** <https://meta.discourse.org/t/how-to-delete-all-posts-for-an-admin/147861>\
**Category:** Product Support\
**Created:** [April 13, 2020, 7:39pm UTC](https://meta.discourse.org/t/how-to-delete-all-posts-for-an-admin/147861 "2020-04-13T19:39:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [April 14, 2020, 6:04am UTC](https://meta.discourse.org/t/how-to-delete-all-posts-for-an-admin/147861/5 "2020-04-14T06:04:25Z")

</div>

> [@christian\_01](#):
>
> I want to revoke admin on a single profile, but there is no ‘revoke’ button. Other ‘Staff’ accounts on my site have a button.
> 
> Any idea why and how to fix please?

Users listed in the `.yml` build file as `DEVELOPERS` cannot be deleted from the UI for security reasons:

```plaintext
 ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: `incredible_undeletables@myamazingdomain.com'

```

 ![Screen Shot 2020-04-14 at 12.59.02 PM](https://global.discourse-cdn.com/meta/original/3X/5/9/59bc2edaa2bd48fae660a3e054d64417e8e92b5e.jpeg)

You will need to remove them from the `.yml` build file and rebuild.

Alternatively, but not recommended and not supported (I assume), is to change their admin status (boolean) in the `users` table for that user to FALSE, directly in the database. Note: I have never done this (never revoked, but I have added moderators this way), but doing things like this (tinkering directly in the DB with things you are not totally familar with) could have unintended consequences, so this is not advised unless all else fails (and make sure 100% you have a working backup of the DB before you do!).

Check your `.yml` file… the issue is more-than-likely there.

---

_[View the full topic](https://meta.discourse.org/t/how-to-delete-all-posts-for-an-admin/147861)._
