DELETE (Project Definition)
- Last UpdatedMar 22, 2022
- 2 minute read
Function:
Deletes elements from the Project.
Notes on Deleted Files:
When a Database (DB) is deleted, its file is renamed by addition of the suffix ".deleted". The renamed file is actually deleted on the next SAVEWORK or module switch, once the change has been saved in the System or Global DB.
This arrangement allows DB files to be recovered after a crash, by the AVEVA base product exit handler. However, if the exit handler cannot be invoked (for example, due to a loss of power) then the files with the deleted suffix can be restored manually, to make the Project directory consistent with the System or Global DB.
Description:
The DELETE command can be used to delete Admin elements.
The DELETE command cannot be abbreviated. This helps protect against accidental deletion. To avoid the risk of DB corruption, all deletion of DBs (i.e. the files inside the Project directory) must be done from AVEVA Administration and not by using operating system utilities or commands.
Notes on Global Projects:
The administrator can only delete Teams, DBs, Locations and Groups at the Hub.
Offline Locations:
When a Location is deleted, the System administrator must make sure that the System DB for that Location is deleted from all other Locations.
Examples:
|
DELETE USER Deletes the current element of the appropriate type. |
|
DELETE DB PIPEN/DESI Deletes DB PIPEN/DESI. DELETE USER HVAC Deletes User HVAC. |
|
DELETE TEAM PIPEN Deletes Team PIPEN DELETE MACRO 7 Deletes the inter-DB connection macro MACRO 7 in the current Project. |
|
DELETE MESSAGE 3 Deletes MESSAGE 3 in the current Project. DELETE RUNFILE Deletes the RUNFILE entry for current module. |
|
DELETE STAMP Deletes the Stamp that is the current element. |
|
Global Projects only: DELETE LOCATION Deletes the current Location. This will remove the System DB file for that Location from all other Locations. The Location may be deleted provided all DBs (other than its transaction DB) have been deleted. |
|
DELETE LOCATION LON Deletes Location LON. DELETE GRP Deletes the current Location Group. |
|
DELETE LCOMD Deletes the current communication event. DELETE WORKING EXTRACT FROM CTATEST/DES1 FOR USERA Deletes the working extract for USERA from the DB CTATEST/DES1. Working extracts cannot be deleted unless the owning extract is Primary at the currently administered Location. |
Command Syntax:
|
>--- DELETE ---+--- USer ------+--- user--------------------------. |
Note:
Locations, GRPs and LCOMDs exist in Global Projects only.