I am able to achieve this with GitHub. But I am unable to do the same with GitLab. Currently, what I have is:
curl -u "$user:$token" -H "Content-Type:application/json" -H "PRIVATE-TOKEN:$token" \
-X DELETE https://git.lab.com/api/v4/projects/$repo_name
And then I get this error:
curl: (35) error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
I already have a working script using curl to create a GitLab repository on the command line so my curl is working fine. I just needed the delete part.