deleteIfEmpty

deleteIfEmpty();

The deleteIfEmpty method of the Collection class, which can be executed only in single user mode, deletes an empty shared or exclusive collection. If the method is called in multiuser mode, an exception 131 (This method can only be executed in single user) is raised.

If the collection is not empty, calling this method raises exception 1320 (Operation invalid - collection not empty). Call the isEmpty method to determine if a collection is empty.