def METHOD_NAME(self, state: EventTypes, file_name: str) -> None:
    """
    Delete a script hook from a given state.
    :param state: state to delete script hook from
    :param file_name: name of script to delete
    :return: nothing
    """
    state_hooks = self.script_hooks.get(state, {})
    if file_name not in state_hooks:
        raise CoreError(
            f"deleting state({state.name}) hook script({file_name}) "
            "that does not exist"
        )
    del state_hooks[file_name]