lisaleague
11/8/2016 - 9:41 PM

From https://help.wpengine.com/hc/en-us/requests/766935?page=1

621                 public function delete_post( $post_id ){
622                         try {
623                                 $this->client->delete_document( $this->engine_slug, $this->document_type_slug, $post_id );
624                                 $this->num_indexed_documents -= 1;
625                                 update_option( 'swiftype_num_indexed_documents', $this->num_indexed_documents );
626                         } catch( SwiftypeError $e ) {
627                                 return;
628                         }
629                 }