Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 76fe7ba

Browse files
authored
[Master] Highlight the danger of network reset (#4482)
Signed-off-by: Dave Kelsey <d_kelsey@uk.ibm.com>
1 parent 670bb83 commit 76fe7ba

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/composer-admin/lib/adminconnection.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,10 @@ class AdminConnection {
500500
*
501501
* Note this will remove ALL the contents of the network registries, but not any system registries
502502
*
503+
* IMPORTANT: Never use this api on a production or shared business network. It should only ever be
504+
* used as a quick reset against a business network running locally on your machine for which you will
505+
* not keep. Use this for your local development testing purposes only
506+
*
503507
* @example
504508
* // Resets a Business Network Definition
505509
* let adminConnection = new AdminConnection();

packages/composer-website/jekylldocs/reference/composer.network.reset.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ excerpt: Hyperledger Composer Network Reset Command
1010

1111
---
1212

13-
The `composer network reset` command deletes the contents of all the registries in the State Database. It is fast way for developers to reset the Business Network and remove test data.
13+
The `composer network reset` command deletes the contents of all the registries in the State Database. It is fast way for developers to reset the Business Network and remove test data.
14+
15+
**IMPORTANT: Never use this command on a production or shared business network. It should only ever be used as a quick reset against a business network running locally on your machine for which you will not keep. Use this for your local development testing purposes only**
1416

1517
`composer network reset -c admin@example-network`
1618

0 commit comments

Comments
 (0)