edmiDeleteRepository
EdmiError edmiDeleteRepository(SdaiRepository repositoryId);
Deletes the specified repository from the EDMdatabase. Only the owner of the repository can delete it. A repository must be empty and closed before it can be deleted. The default repositories 'DictionaryRepository' , 'SystemRepository' and 'DataRepository' cannot be deleted.
Arguments
Type | Name | Comment |
SdaiRepository | repositoryId | A numeric repositoryID that uniquely identifies the repository to be deleted. The repositoryID is returned when the repository is created and by the following operations: sdaiOpenRepository , sdaiOpenRepositoryBN , edmiOpenRepository , edmiOpenRepositoryBN , edmiGetRepository |
Return Value
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.
Options
Example
SdaiRepository repId; EdmiError rstat; ... if (rstat = edmiDeleteRepository(repId)) { /* Error in operation */ printf("\nError: %s in edmiDeleteRepository\n", edmiGetErrorText(rstat)); goto error; } /* Specified repository is permanently deleted from database */
See also
Filter by label
There are no items with the selected labels at this time.