Deleting uploaded file through API

I uploaded a file through the API with

curl --header "PRIVATE-TOKEN: my-token" --request POST --form "file=@my-file" ""

How do I delete the file?

1 Like

Have you tried repository api’s.

curl --request PUT --header ‘PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK’ ‘


@hozawa: repository_files is related to Git repository, not uploaded files.
I’m still looking for an answer to the OP.