Change Post Status From Front End

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.

tech