Delete subtitles in bulk by format

have a series that have 3 different subtitles in english. ASS,SRT and HDMV PGS. Is there a way to delete subtitles by codec or format in bulk?