WordPress at a glance
function is not described

wp_import_cleanup() WP 2.0.0

Cleanup importer.

Removes attachment based on ID.

No Hooks.

Return

Null. Nothing.

Usage

wp_import_cleanup( $id );
$id(string) (required)
Importer ID.

Changelog

Since 2.0.0 Introduced.

Code of wp import cleanup: wp-admin/includes/import.php WP 5.2.2

<?php
function wp_import_cleanup( $id ) {
	wp_delete_attachment( $id );
}