Don't do that.
If you don't need the data on this cluster any more, then you can just delete everything (the data/
directory) start over, and it will regenerate the license.
Otherwise you need to explicitly start a new basic license with:
curl -uelastic -XPOST 'http://localhost:9200/_xpack/license/start_basic'