CfgMgr::DeleteSnapshot
Description
Deletes snapshot files.
Prototype
uint32_t CfgMgr::DeleteSnapshot(const std::string &snapshotName, const std::string &startConfig = "")
Function Security Level
ASIL-D
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
snapshotName |
Input |
Snapshot file name. Snapshot files are deleted by name. |
startConfig |
Input |
Startup description file (version number). By default, the value is the current startup description file. |
Returns
The return value is of the uint32_t type. If the operation is successful, CFGMGR_SUCCESS is returned. If the operation fails, an error code is returned.
Usage
After SELinux permission control is enabled, non-privileged processes can be called only after the read and write permissions on dp:/res/cfgmgr/mgmt are configured.
Precautions
Delete snapshots based on names created by CfgMgr::CreateSnapshot.
Parent topic: Configuration Management