Jump to navigation Jump to search
Available from version 1.4.0
Occurs after the delete article request has been processed
Define function:
public static function onArticleDeleteComplete( &$article, User &$user, $reason, $id, $content, LogEntry $logEntry, $archivedRevisionCount ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"ArticleDeleteComplete": "MyExtensionHooks::onArticleDeleteComplete"

For MediaWiki ≤1.25:

$wgHooks['ArticleDeleteComplete'][] = 'MyExtensionHooks::onArticleDeleteComplete';
Called from:File(s): Article.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ArticleDeleteComplete extensions.


  • $article: the article that was deleted. WikiPage in MW >= 1.18, Article in 1.17.x and earlier.
  • $user: the user that deleted the article
  • $reason: the reason the article was deleted
  • $id: id of the article that was deleted (added in 1.13)
  • $content: the content of the deleted article, or null in case of an error (added in 1.21)
  • $logEntry: the log entry used to record the deletion (added in 1.21)
  • $archivedRevisionCount: the number of revisions archived during the page delete (added in 1.28)

See also[edit]