Let's assume that you want to delete a repository from your GitHub account. In this case, you need to use the following endpoint with the @DELETE function:
@DELETE("repos/{owner}/{repo}")
fun deleteRepo(@Header("Authorization") accessToken: String,
@Header("Accept") apiVersionSpec: String,
@Path("repo") repo: String,
@Path("owner") owner: String): Call<DeleteRepos>