diff --git a/.ci_templates/.clang_format.yml b/.ci_templates/.clang_format.yml
index dc263197d73bc5bf68967dfd390ae2933bde2a31..b62073920184d98edef9e94f3b1312a8da89bcc2 100644
--- a/.ci_templates/.clang_format.yml
+++ b/.ci_templates/.clang_format.yml
@@ -11,7 +11,7 @@
   
   # create temporary branch
   - if [ `git rev-parse --verify ci_clangformat 2>/dev/null` ]; then
-  -   git branch --delete ci_clangformat
+  -   git branch -D ci_clangformat
   - fi
   - export CI_NEW_BRANCH_CLANG=ci_clangformat
   - echo creating new temporary branch... $CI_NEW_BRANCH_CLANG
diff --git a/.ci_templates/.license_headers.yml b/.ci_templates/.license_headers.yml
index cc3b675ccd6bf027e21971d951052563cd64d77a..f2b1db32f2a2f126eb7053ac55468df95192b255 100644
--- a/.ci_templates/.license_headers.yml
+++ b/.ci_templates/.license_headers.yml
@@ -12,7 +12,7 @@
 
   # create temporary branch
   - if [ `git rev-parse --verify ci_license_header 2>/dev/null` ]; then
-  -   git branch --delete ci_license_header
+  -   git branch -D ci_license_header
   - fi
   - export CI_NEW_BRANCH_LICENSE=ci_license_header
   - echo creating new temporary branch... $CI_NEW_BRANCH_LICENSE
diff --git a/.ci_templates/.yaml_schema_cpp.yml b/.ci_templates/.yaml_schema_cpp.yml
index fb7056750f841bfdd95de84630bd4f1da6127089..1e26f3d7963d9a90429e11224e4f8869d57fed14 100644
--- a/.ci_templates/.yaml_schema_cpp.yml
+++ b/.ci_templates/.yaml_schema_cpp.yml
@@ -38,7 +38,7 @@
 
   # create temporary branch
   - if [ `git rev-parse --verify ci_yamlschemacpp 2>/dev/null` ]; then
-  -   git branch --delete ci_yamlschemacpp
+  -   git branch -D ci_yamlschemacpp
   - fi
   - export CI_NEW_BRANCH_YAML=ci_yamlschemacpp
   - echo creating new temporary branch... $CI_NEW_BRANCH_YAML