Delete product system
lca_delete_systemDelete a saved product system (s<N>) and its assessments from a workspace. The system is system_ref in the workspace named by workspace. The deletion cannot be undone. Its assessments (a<N>) are deleted with it and leave any comparison (c<N>) they belong to; contribution and sensitivity analyses (b<N>, v<N>) are kept, detached; reports (r<N>) citing it are kept, but those citations stop resolving. Without confirm: true the call returns a preview listing every one of them by ref, and deletes nothing. The system's copy in its openLCA engine is kept unless delete_engine_copy: true, which deletes it too only when Aevia created that copy and the engine is writable; the preview and the result say which applies. delete_engine_copy changes the openLCA database, so it needs this connection at the Execute access level; below it the call is refused, and deleting without it is allowed. A process or flow authored into an engine is deleted by lca_delete_authored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Delete it. Without it the call returns a preview of everything the delete takes with it, and deletes nothing. | |
| workspace | Yes | Name of the workspace to work in, as `lca_get(kind='workspaces')` lists it (backticks optional). Named on every call: several conversations can share one connection, and each names its own workspace. The connection's default is often an empty sandbox rather than the user's work. | |
| system_ref | Yes | The saved product system `s<N>` to delete. | |
| delete_engine_copy | No | Also delete the system's copy in its openLCA engine — honoured only when Aevia created that copy and the engine is writable. Kept by default. Needs the Execute access level (it changes the openLCA database); below it the call is refused. |