# Delete user avatar by API

**URL:** https://meta.discourse.org/t/delete-user-avatar-by-api/154813
**Category:** Development
**Tags:** rest-api
**Created:** [June 14, 2020, 2:15pm UTC](https://meta.discourse.org/t/delete-user-avatar-by-api/154813 "2020-06-14T14:15:16Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [June 15, 2020, 8:16pm UTC](https://meta.discourse.org/t/delete-user-avatar-by-api/154813/2 "2020-06-15T20:16:57Z")

</div>

You should be able to call the [sync\_sso route](https://meta.discourse.org/t/sync-sso-user-data-with-the-sync-sso-route/84398) to re-sync the user avatar, but you can also make a PUT request to `http://localhost:3000/u/<username>/preferences/avatar/pick` with an empty upload\_id

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/2/32daa3c0af688cfe82579f01fa68227ca3be4ee4.png)

to delete the users current avatar and assign them a letter avatar.

---

_[View the full topic](https://meta.discourse.org/t/delete-user-avatar-by-api/154813)._
