WordPress at a glance
function is not described

wp_ajax_delete_page() WP 3.1.0

Ajax handler to delete a page.

No Hooks.

Return

Nothing (null).

Usage

wp_ajax_delete_page( $action );
$action(string) (required)
Action to perform.

Code of wp ajax delete page: wp-admin/includes/ajax-actions.php VER 5.1.1

<?php
function wp_ajax_delete_page( $action ) {
	if ( empty( $action ) ) {
		$action = 'delete-page';
	}
	$id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;

	check_ajax_referer( "{$action}_$id" );
	if ( ! current_user_can( 'delete_page', $id ) ) {
		wp_die( -1 );
	}

	if ( ! get_post( $id ) ) {
		wp_die( 1 );
	}

	if ( wp_delete_post( $id ) ) {
		wp_die( 1 );
	} else {
		wp_die( 0 );
	}
}