Skip to content

Commit 0f5f778

Browse files
authored
node: remove graphman drop command
1 parent 12c91aa commit 0f5f778

File tree

3 files changed

+0
-115
lines changed

3 files changed

+0
-115
lines changed

node/src/bin/manager.rs

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -309,29 +309,6 @@ pub enum Command {
309309
#[clap(subcommand)]
310310
Database(DatabaseCommand),
311311

312-
/// Delete a deployment and all it's indexed data
313-
///
314-
/// The deployment can be specified as either a subgraph name, an IPFS
315-
/// hash `Qm..`, or the database namespace `sgdNNN`. Since the same IPFS
316-
/// hash can be deployed in multiple shards, it is possible to specify
317-
/// the shard by adding `:shard` to the IPFS hash.
318-
Drop {
319-
/// The deployment identifier
320-
deployment: DeploymentSearch,
321-
/// Search only for current version
322-
#[clap(long, short)]
323-
current: bool,
324-
/// Search only for pending versions
325-
#[clap(long, short)]
326-
pending: bool,
327-
/// Search only for used (current and pending) versions
328-
#[clap(long, short)]
329-
used: bool,
330-
/// Skip confirmation prompt
331-
#[clap(long, short)]
332-
force: bool,
333-
},
334-
335312
/// Deploy a subgraph
336313
Deploy {
337314
name: DeploymentSearch,
@@ -1699,29 +1676,6 @@ async fn main() -> anyhow::Result<()> {
16991676
}
17001677
}
17011678
}
1702-
Drop {
1703-
deployment,
1704-
current,
1705-
pending,
1706-
used,
1707-
force,
1708-
} => {
1709-
let sender = ctx.notification_sender();
1710-
let (store, primary_pool) = ctx.store_and_primary();
1711-
let subgraph_store = store.subgraph_store();
1712-
1713-
commands::drop::run(
1714-
primary_pool,
1715-
subgraph_store,
1716-
sender,
1717-
deployment,
1718-
current,
1719-
pending,
1720-
used,
1721-
force,
1722-
)
1723-
.await
1724-
}
17251679

17261680
Deploy {
17271681
deployment,

node/src/manager/commands/drop.rs

Lines changed: 0 additions & 68 deletions
This file was deleted.

node/src/manager/commands/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ pub mod create;
77
pub mod database;
88
pub mod deploy;
99
pub mod deployment;
10-
pub mod drop;
1110
pub mod index;
1211
pub mod listen;
1312
pub mod provider_checks;

0 commit comments

Comments
 (0)