diff --git a/src/NRedisStack/Graph/GraphCommands.cs b/src/NRedisStack/Graph/GraphCommands.cs
index 4f0481c2..59fc4f56 100644
--- a/src/NRedisStack/Graph/GraphCommands.cs
+++ b/src/NRedisStack/Graph/GraphCommands.cs
@@ -85,15 +85,11 @@ public ResultSet CallProcedure(string graphName, string procedure, IEnumerable
- public ResultSet Delete(string graphName)
+ public bool Delete(string graphName)
{
- var result = _db.Execute(GraphCommandBuilder.Delete(graphName));
-
- var processedResult = new ResultSet(result, _graphCaches[graphName]);
-
+ var result = _db.Execute(GraphCommandBuilder.Delete(graphName)).OKtoBoolean();
_graphCaches.Remove(graphName);
-
- return processedResult;
+ return result;
}
///
diff --git a/src/NRedisStack/Graph/GraphCommandsAsync.cs b/src/NRedisStack/Graph/GraphCommandsAsync.cs
index 9e0d3192..cdbb7517 100644
--- a/src/NRedisStack/Graph/GraphCommandsAsync.cs
+++ b/src/NRedisStack/Graph/GraphCommandsAsync.cs
@@ -87,15 +87,11 @@ public async Task CallProcedureAsync(string graphName, string procedu
///
- public async Task DeleteAsync(string graphName)
+ public async Task DeleteAsync(string graphName)
{
- var result = await _db.ExecuteAsync(GRAPH.DELETE, graphName);
-
- var processedResult = new ResultSet(result, _graphCaches[graphName]);
-
+ var result = (await _db.ExecuteAsync(GraphCommandBuilder.Delete(graphName))).OKtoBoolean();
_graphCaches.Remove(graphName);
-
- return processedResult;
+ return result;
}
///
diff --git a/src/NRedisStack/Graph/IGraphCommands.cs b/src/NRedisStack/Graph/IGraphCommands.cs
index bd1a3100..3be792c4 100644
--- a/src/NRedisStack/Graph/IGraphCommands.cs
+++ b/src/NRedisStack/Graph/IGraphCommands.cs
@@ -79,9 +79,9 @@ public interface IGraphCommands
/// Delete an existing graph.
///
/// The graph to delete.
- /// A result set.
+ /// if executed correctly, error otherwise/>
///
- ResultSet Delete(string graphName);
+ bool Delete(string graphName);
///
/// Constructs a query execution plan but does not run it. Inspect this execution plan to better understand how your
diff --git a/src/NRedisStack/Graph/IGraphCommandsAsync.cs b/src/NRedisStack/Graph/IGraphCommandsAsync.cs
index 46b84889..62ea118f 100644
--- a/src/NRedisStack/Graph/IGraphCommandsAsync.cs
+++ b/src/NRedisStack/Graph/IGraphCommandsAsync.cs
@@ -79,9 +79,9 @@ public interface IGraphCommandsAsync
/// Delete an existing graph.
///
/// The graph to delete.
- /// A result set.
+ /// if executed correctly, error otherwise/>
///
- Task DeleteAsync(string graphName);
+ Task DeleteAsync(string graphName);
///
/// Constructs a query execution plan but does not run it. Inspect this execution plan to better understand how your