Skip to main content

1E 9.x (on-premises)

Storage.Delete

Method

Delete

Module

Storage

Library

Core

Action

Removes an existing user defined persistent storage table.

Parameters

Name (string): The name of the persistent storage table. Case is not significant.

Return values

Name (string): The table's name if the storage table is deleted from persistent storage, else nothing.

Example

@storageName = SELECT "LoggedInAudit" AS Name;

@result = Storage.Delete(Name:@storageName);
IF (@result)
    SELECT @storageName.Name ||" Table deleted" AS Status FROM @storageName;
ELSE
    SELECT @storageName.Name ||" Table not found" AS Status FROM @storageName;
ENDIF;

Platforms

  • Windows

  • Linux

  • MacOS

Notes

This method can be used with the SCALE evaluate statement to abandon processing if the persistent storage table is not present.