docstr: Delete a key-value pair
  
  :param resource: the resource (dashboard, chart etc)
  :param key: the key to delete
  :return: was the entry deleted or not
docstr_tok: ["Delete","a","key-value","pair",":","param","resource",":","the","resource","(","dashboard",",","chart","etc",")",":","param","key",":","the","key","to","delete",":","return",":","was","the","entry","deleted","or","not"]
code: def __init__(self, resource: KeyValueResource, key: Union[int, UUID]):
      """
      Delete a key-value pair
  
      :param resource: the resource (dashboard, chart etc)
      :param key: the key to delete
      :return: was the entry deleted or not
      """
      self.resource = resource
      self.key = key
  
file_path: superset/superset/commands/key_value/delete.py
imports: import logging
  from typing import Union
  from uuid import UUID
  from sqlalchemy.exc import SQLAlchemyError
  from superset import db
  from superset.commands.base import BaseCommand
  from superset.key_value.exceptions import KeyValueDeleteFailedError
  from superset.key_value.models import KeyValueEntry
  from superset.key_value.types import KeyValueResource
  from superset.key_value.utils import get_filter
label_desc: Use image node_id 1 to create a new DeleteKeyValueCommand object from inherited base classes: BaseCommand with example: obj = DeleteKeyValueCommand(resource, key)