Delete a WASM binary from the catalog by its content hash.
(
catalog: &crate::control::security::catalog::types::SystemCatalog,
hash: &str,
)
| 68 | |
| 69 | /// Delete a WASM binary from the catalog by its content hash. |
| 70 | pub fn delete_wasm_binary( |
| 71 | catalog: &crate::control::security::catalog::types::SystemCatalog, |
| 72 | hash: &str, |
| 73 | ) -> crate::Result<()> { |
| 74 | let key = format!("wasm_module:{hash}"); |
| 75 | catalog |
| 76 | .delete_raw(key.as_bytes()) |
| 77 | .map_err(|e| crate::Error::Internal { |
| 78 | detail: format!("failed to delete WASM binary: {e}"), |
| 79 | }) |
| 80 | } |
no test coverage detected