I using the following .bat file to remove all metadatas, but it does no remove all of them.

PHP Code:
echo off
mkdir outputs
for %%a in ("*.mkv") do [url=https://www.videohelp.com/software/ffmpeg]ffmpeg[/url] -hide_banner -i "%%a" -map 0:v:0? -map 0:a? -map 0:s? -c copy -map_metadata:g -1 "outputs\%%~na.mkv"
pause 
It does not remove all metadatas like _STATISTICS_WRITING_APP. I would like to know how could I remove all the metadatas and keep the subtitles and audios.



PHP Code:
General
Unique ID                      
: ......... (....)
Complete name                  Secrets.mkv
Format                         
Matroska
Format version                 
Version 4 Version 2
File size                      
581 MiB
Duration                       
51mn 30s
Overall bit rate               
1 578 Kbps
Writing application            
Lavf58.76.100
Writing library                
Lavf58.76.100
NUMBER_OF_FRAMES               
436
NUMBER_OF_BYTES                
15266
_STATISTICS_WRITING_APP        
: [url=https://www.videohelp.com/software/MKVToolNix]mkvmerge[/url] v57.0.0 ('Till The End') 64-bit
_STATISTICS_WRITING_DATE_UTC   2021-06-05 14:58:10
_STATISTICS_TAGS               
BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
DURATION                       
00:47:34.083000000

Video
ID                             
1
Format                         
HEVC
Format
/Info                    High Efficiency Video Coding
Format profile                 
Main 10@L4@Main
Codec ID                       
V_MPEGH/ISO/HEVC
Duration                       
51mn 30s
Width                          
1 920 pixels
Height                         
960 pixels
Display aspect ratio           
2.000
Frame rate mode                
Constant
Frame rate                     
24.000 fps
Color space                    
YUV
Chroma subsampling             
4:2:0
Bit depth                      
10 bits
Writing library                
x265 3.0_Au+14-c7e5878bdd31:[Windows][MSVC 1916][64 bit10bit
Encoding settings              
cpuid=1111039 frame-threads=numa-pools=16 wpp no-pmode no-pme no-psnr ssim log-level=input-csp=input-res=1920x960 interlace=total-frames=74167 level-idc=high-tier=uhd-bd=ref=no-allow-non-conformance no-repeat-headers annexb no-aud no-hrd info hash=no-temporal-layers open-gop min-keyint=24 keyint=250 gop-lookahead=bframes=b-adapt=b-pyramid bframe-bias=40 rc-lookahead=80 lookahead-slices=scenecut=40 radl=no-splice no-intra-refresh ctu=64 min-cu-size=rect no-amp max-tu-size=32 tu-inter-depth=tu-intra-depth=limit-tu=rdoq-level=dynamic-rd=0.00 ssim-rd signhide no-tskip nr-intra=nr-inter=no-constrained-intra strong-intra-smoothing max-merge=limit-refs=limit-modes me=subme=merange=57 temporal-mvp weightp no-weightb no-analyze-src-pics deblock=0:sao no-sao-non-deblock rd=early-skip rskip no-fast-intra no-tskip-fast no-cu-lossless no-b-intra splitrd-skip rdpenalty=psy-rd=0.00 psy-rdoq=1.00 no-rd-refine no-lossless cbqpoffs=crqpoffs=rc=abr bitrate=1200 qcomp=0.60 qpstep=stats-write=stats-read=cplxblur=20.0 qblur=0.5 ipratio=1.40 pbratio=1.30 aq-mode=aq-strength=0.80 cutree zone-count=no-strict-cbr qg-size=32 no-rc-grain qpmax=69 qpmin=no-const-vbv sar=overscan=videoformat=range=colorprim=transfer=colormatrix=chromaloc=display-window=max-cll=0,min-luma=max-luma=1023 log2-max-poc-lsb=vui-timing-info vui-hrd-info slices=no-opt-qp-pps no-opt-ref-list-length-pps multi-pass-opt-rps scenecut-bias=0.05 no-opt-cu-delta-qp no-aq-motion no-hdr no-hdr-opt no-dhdr10-opt no-idr-recovery-sei analysis-reuse-level=10 scale-factor=refine-intra=refine-inter=refine-mv=refine-ctu-distortion=limit-sao ctu-info=no-lowpass-dct refine-analysis-type=copy-pic=max-ausize-factor=1.0 no-dynamic-refine no-single-sei no-hevc-aq no-svt qp-adaptation-range=1.00
Default                        : Yes
Forced                         
No

Audio 
#1
ID                             2
Format                         
AAC
Format
/Info                    Advanced Audio Codec
Format profile                 
HE-AAC LC
Codec ID                       
A_AAC
Duration                       
51mn 30s
Channel
(s)                     : 6 channels
Channel positions              
FrontL C RSideL RLFE
Sampling rate                  
48.0 KHz 24.0 KHz
Compression mode               
Lossy
Delay relative to video        
31ms
Language                       
German
Default                        : No
Forced                         
No

Audio 
#2
ID                             3
Format                         
AAC
Format
/Info                    Advanced Audio Codec
Format profile                 
HE-AAC LC
Codec ID                       
A_AAC
Duration                       
51mn 30s
Channel
(s)                     : 6 channels
Channel positions              
FrontL C RSideL RLFE
Sampling rate                  
48.0 KHz 24.0 KHz
Compression mode               
Lossy
Delay relative to video        
31ms
Language                       
English
Default                        : Yes
Forced                         
No

Text 
#1
ID                             4
Format                         
UTF-8
Codec ID                       
S_TEXT/UTF8
Codec ID
/Info                  UTF-8 Plain Text
Language                       
English
Default                        : Yes
Forced                         
No

Text 
#2
ID                             5
Format                         
UTF-8
Codec ID                       
S_TEXT/UTF8
Codec ID
/Info                  UTF-8 Plain Text
Language                       
German
Default                        : No
Forced                         
No