Skip to main content

Delete a Policy

Policies can be deleted by the Key Owner.

Process Overview

  1. Submit Request: The user creates a request payload containing the key_id.
  2. Sign Request: The request is signed by the Key Owner (User) to ensure authenticity.
  3. Node Validation & Deletion: The Node validates the signature and authorizes the deletion. Then, it removes the policy and its MAC from the database.

Upon receiving the request, the Node performs the following:

  • Authentication: Authenticates the request using the provided signatures (e.g. user_sig, WPBE_sig).
  • Deletion: The Policy and its MAC are permanently removed from the storage.

Delete Policy in Silent Network

Example

Follow this instruction to setup your Wallet Backend

curl -X POST "http://<YOUR_WALLET_BACKEND_ENDPOINT>/v2/rest/deletePolicy" \
-H "Content-Type: application/json" \
-d '{
"payload": {
"keyId": "YOUR_KEY_ID_HERE"
},
"userSignatures": { ... } # Key Owner authentication
}'