[Wikidata]Add a pywikibot method corresponding to 'action=wbremovereferences' in wikidata api
completed by: Allen Guo
PyWikibot  is a Python-based framework to write bots for MediaWiki. There
are currently 2 versions of pywikibot currently used:
- version 1.0 (also known as pywikibot-compat) is the legacy version
- version 2.0 (also known as pywikibot-core) is a rewrite of the original
framework, focusing solely on MediaWiki wikis with an API (version 1.14 or
newer) and offering an improved internal architecture.
Wikidata  is the Wikimedia project that hosts interwiki links and different data snippets about the various articles in Wikipedia, Wikivoyage and Wikimedia Commons. Current support for Wikidata in Pywikibot is incomplete.
While we have removeClaims as a function for ItemPages, there is no removeSources to remove a source that belongs to a claim.
It would be needed to create a function for item pages, and for the underlying site.py function removeSources to be created to call the api  with action=wbremovereferences as the action.
In order for this task to be considered completed, your patch needs to be reviewed and merged in the repository. Please allow at least 12h for this to happen. Patches can be submited through the gerrit uploader  (you need a MediaWiki.org account). More documentation on gerrit can be found at .
After you have successfully claimed this task in Google Melange please do use the bug report  in Bugzilla for communication instead of Google Melange. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list and the #pywikipediabot IRC channel.
Students are required to read Wikimedia's general instructions first.