MediaWiki

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

< 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).