wp_trash_post( ... )

Moves a post or page to the Trash

Parameters:
  • $post_id int