Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To delete a token, execute the following curl command for your selected environment.

Substitute your token where <token> is written in the command below.  An example token is: 08D386C0-D020-A2BD-A65E-F54593A56FDB

Tip
titleExample

curl -X DELETE --header "Content-Type: application/xml" https://cmr.earthdata.nasa.gov/legacy-services/rest/tokens/<token>

 

Note:

  • Depending on the environment you selected, the Base API URL may be different from the example.  If so, just replace the purple text with the correct Base API URL that you need.
  • If you are embedding the token REST messages into a programming language, create an HTTP message and place the same components from the curl example into either the message header or body.

The return code should be a 204, otherwise an error has occurred.