MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=removeavatar

(main | removeavatar)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: SocialProfile
  • License: unknown

Remove an avatar, either yours or if you're privileged, also that of another user.

Specific parameters:
Other general parameters are available.
user

Name of the user whose avatar to remove.

This parameter is required.
Type: user, by username
reason

Optional reason as to why you're removing someone else's avatar.

token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.
Examples:
Remove the avatar of the user named "Ashley"
api.php?action=removeavatar&user=Ashley&token=123ABC [open in sandbox]
Remove the avatar of the user named "Elektra" with "Blatant copyvio" as the deletion reason
api.php?action=removeavatar&user=Elektra&token=123ABC&reason=Blatant copyvio [open in sandbox]