Trying to record audio in the background, File1 delete problem

I cannot understanded custom code..i am
a php,laravel,vuejs developer