WordPress Version: 3.7
/**
* Cleanup importer.
*
* Removes attachment based on ID.
*
* @since 2.0.0
*
* @param string $id Importer ID.
*/
function wp_import_cleanup($id)
{
wp_delete_attachment($id);
}
The timeline below displays how wordpress function wp_import_cleanup has changed across different WordPress versions. If a version is not listed, refer to the next available version below.
/**
* Cleanup importer.
*
* Removes attachment based on ID.
*
* @since 2.0.0
*
* @param string $id Importer ID.
*/
function wp_import_cleanup($id)
{
wp_delete_attachment($id);
}