Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete the WARP+ account #211

Open
fscarmen opened this issue Aug 13, 2022 · 5 comments
Open

Delete the WARP+ account #211

fscarmen opened this issue Aug 13, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@fscarmen
Copy link

After I upgrade to warp+ account via wgcf update. How do I delete the account while uninstalling it?
In the past I could only delete on the 1.1.1.1 app.

@ViRb3
Copy link
Owner

ViRb3 commented Aug 14, 2022

There is no delete functionality at the moment.

@ViRb3 ViRb3 added the enhancement New feature or request label Aug 14, 2022
@ViRb3 ViRb3 changed the title How to delete the WARP+ account Delete the WARP+ account Aug 14, 2022
@fscarmen
Copy link
Author

There is no delete functionality at the moment.

Is there a plan to add this feature? warp-cli has this feature to delete accounts, can WGCF refer to it?

image

@ViRb3
Copy link
Owner

ViRb3 commented Aug 15, 2022

No time on my side, but PRs welcome.

@cinit
Copy link

cinit commented Nov 7, 2023

Hi @fscarmen ,
You can use the following command to delete your account.

curl -v -X DELETE --header "CF-Client-Version: a-6.30-3596" --header "User-Agent: okhttp/3.12.1"  --header 'Content-Type: application/json'  --header "Authorization: Bearer $token" "https://api.cloudflareclient.com/v0a3596/reg/$id" 

You can find id and token in your wgcf configuration file.

If this succeeds, you will see HTTP 204 No Content in the curl output.

@fscarmen
Copy link
Author

fscarmen commented Nov 7, 2023

Hi @fscarmen , You can use the following command to delete your account.

curl -v -X DELETE --header "CF-Client-Version: a-6.30-3596" --header "User-Agent: okhttp/3.12.1"  --header 'Content-Type: application/json'  --header "Authorization: Bearer $token" "https://api.cloudflareclient.com/v0a3596/reg/$id" 

You can find id and token in your wgcf configuration file.

If this succeeds, you will see HTTP 204 No Content in the curl output.

Thanks, I've made it by api script.

bash <(wget -qO- https://gitlab.com/fscarmen/warp/-/raw/main/api.sh) --file /etc/wireguard/wgcf-account.toml --cancle

Detailed project: https://gitlab.com/fscarmen/warp/-/blob/main/README.md#cloudflare-api-%E8%BF%90%E8%A1%8C%E8%84%9A%E6%9C%AC

 Usage:
        bash api.sh     -h/--help               help
                        -f/--file string        Configuration file (default warp-account.conf)
                        -r/--registe            Registe an account
                        -t/--token              Registe with a team token
                        -d/--device             Get the devices information and plus traffic quota
                        -a/--app                Fetch App information
                        -b/--bind               Get the account blinding devices
                        -n/--name               Change the device name
                        -l/--license            Change the license
                        -u/--unbind             Unbine a device from the account
                        -c/--cancle             Cancle the account
                        -i/--id                 Show the client id and reserved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants