[HttpFoundation] Added a switch to delete file after the response is send