Method: Meilisearch::Client#delete_key

Defined in:
lib/meilisearch/client.rb

#delete_key(uid_or_key) ⇒ Object

Delete an API key.

# obviously this example uid will not correspond to a key on your server
# please replace it with your own key's uid
uid = '6062abda-a5aa-4414-ac91-ecd7944c0f8d'
client.delete_key(uid)

This and other key methods require that the Meilisearch instance have a master key set.

Parameters:

  • uid_or_key (String)

    either the uuidv4 that is the key’s uid or a hash of the uid and the master key that is the key’s key field

See Also:



265
266
267
# File 'lib/meilisearch/client.rb', line 265

def delete_key(uid_or_key)
  http_delete "/keys/#{uid_or_key}"
end