Simply replace
wp_delete_post( get_query_var( 'postid1'), true );
with
wp_update_post( array( 'ID' => get_query_var( 'postid1' ), 'post_status' => 'draft' ) );
That is assuming that the rest of your logic does already work.
Simply replace
wp_delete_post( get_query_var( 'postid1'), true );
with
wp_update_post( array( 'ID' => get_query_var( 'postid1' ), 'post_status' => 'draft' ) );
That is assuming that the rest of your logic does already work.