MediaWiki

Apihelp-upload-to-commons-param-removeafterupload/id

< MediaWiki:Apihelp-upload-to-commons-param-removeafterupload

Remove the stashed file if the upload succeeded (doesn't delete any already on-wiki files, see action=delete for that).