MediaWiki

Apierror-removeonlystash/id

< MediaWiki:Apierror-removeonlystash

The removeafterupload parameter can only remove stashed files. For already on-wiki files, see action=delete.