Although it doesn’t particularly solve my problem as I wanted I guess adding the wp_delete_post($post_id)
under failed conditionals will get rid of the empty posts, if otherwise, someone can correct me on that. Should I also add it in the condition that checks if $_POST['acf']
is empty before the return?