Unable to purge gateway using ttn cli

Hi There,

I am unable to purge gateway using ttn cli command

error
ttn-lw-cli gateways purge --gateway-id b827ebfffe2c6551
WARN This action will permanently delete the gateway and all related data (API keys, antennas, attributes etc.)
WARN Are you sure? Confirm your choice:
[Y/n]> y
WARN Finished unary call {“duration”: 0.1439, “error”: “error:pkg/identityserver:admins_purge_gateways (gateways may only be purged by admins)”, “error_correlation_id”: “5389e5761b484189a1316ca0e73c84cf”, “error_name”: “admins_purge_gateways”, “error_namespace”: “pkg/identityserver”, “grpc.method”: “Purge”, “grpc.service”: “ttn.lorawan.v3.GatewayRegistry”, “grpc_code”: “PermissionDenied”, “namespace”: “grpc”, “request_id”: “3d9e15b0-f835-43b2-b22f-0c7990e9255f”}
error:pkg/identityserver:admins_purge_gateways (gateways may only be purged by admins)
correlation_id=5389e5761b484189a1316ca0e73c84cf

I am having the same issue did you ever get this resolved?

Thanks

“ttn.lorawan.v3.GatewayRegistry”, “grpc_code”: “PermissionDenied”, “namespace”: “grpc”, “request_id”: “3d9e15b0-f835-43b2-b22f-0c7990e9255f”}
error:pkg/identityserver:admins_purge_gateways (gateways may only be purged by admins)

I think that error message is pretty clear. Only admins can purge gateways.

Are you trying to purge it on a local version of The Things Stack or on The Things Stack Community Edition?

Hello @KrishnaIyerEaswaran2, I’m also getting the same error when I try to purge one of my gateways. Its weird because I’ve have logged in from the cli and redirected to a browser for the Oauth authentification. Even after logging in with my account which I am the only collaborator, I’m still getting this error.

The key word here is admin. Are you an admin to the network in which you’re trying to purge entities?