Delete draft avatar created via API?

Hi RPM team and community! :waving_hand:

I’m using the Ready Player Me REST API to create draft avatars for users. This works well, but I’ve run into two related issues:

  1. I don’t see any endpoint to delete or cancel a draft avatar after it’s been created—neither for POST-created users nor avatar drafts. I only found asset-level DELETE endpoints (e.g. DELETE /v1/assets/:id/application) which remove assets from applications but don’t delete the avatar itself . Forum posts seem to confirm this: e.g., Markus_RPM clarified that “there is no ability to delete an account with an API call” .
  2. In my UI, users often hit Cancel before saving their avatar. Ideally, I’d like to “erase” that draft if they cancel, so it doesn’t linger or expire naturally after ~24 hours.

Questions:

  • Am I missing an endpoint that allows deleting or cancelling a draft avatar?
  • Is there a recommended pattern to clean up cancelled draft avatars programmatically?
  • If there’s no such endpoint, do you recommend best practices like:
    • Manually tracking draft IDs in a backend and letting them expire after 24 h?
    • Reverting user changes via PATCH and calling it a day?
    • Or something else?

Any guidance would be hugely appreciated!

Thanks in advance :folded_hands:


Hello @cosmo_app !

I think this might have been missed in our docs but there is in fact a DELETE endpoint

That endpoint and then https://api.readyplayer.me/v2/avatars/<draftId>/draft will remove a draft

So for your use case, simply delete that cancelled avatar and don’t worry about clean up at a later date or anything.

Thanks @Tom_RPM ! This worked great. Hope this makes it into the documentation.

1 Like