def METHOD_NAME(etcd_client_mock, instance):
    """
    Test salt.sdb.etcd_db.delete function
    """
    with patch("salt.sdb.etcd_db._get_conn", etcd_client_mock):
        instance.delete.return_value = True
        assert etcd_db.delete("sdb://myetcd/path/to/foo/bar")
        instance.delete.assert_called_with("sdb://myetcd/path/to/foo/bar")
        assert etcd_db.delete("sdb://myetcd/path/to/foo/bar", service="salt")
        instance.delete.assert_called_with("sdb://myetcd/path/to/foo/bar")
        assert etcd_db.delete("sdb://myetcd/path/to/foo/bar", profile="stack")
        instance.delete.assert_called_with("sdb://myetcd/path/to/foo/bar")
        instance.delete.side_effect = Exception
        assert not etcd_db.delete("sdb://myetcd/path/to/foo/bar")