DELSTO

Synopsis

HELP:   Delete everything a storage holds under a prefix, without opening an archive
TYPE:   OBJECT
SYNTAX: DELSTO(STORE/SAVE.{})

Description

The DELSTO object deletes everything a storage holds below a prefix, without opening an archive.

This is not archive.delarc(). DELARC deletes one FLAM5 archive, and before it does so it reads the access rights out of the archive's MAIN segment and honours DELARC in them. DELSTO reads nothing: it asks the storage to drop every object below the given prefix, whether those objects form an archive or not.

That difference is the reason the function exists and the reason it lives under UTIL rather than under ARCHIVE. An interrupted write can leave objects behind that belong to no archive any more -- no root object, therefore no MAIN segment, therefore no access rights to read. DELARC cannot reach them: it opens the archive first and answers "Object not found". Until now the only way to remove them was a native tool of the storage provider, such as an S3 or Azure client.

Because there is no archive to ask, DELSTO cannot honour the DELARC right. It is therefore not offered as an option of the archive command, where that right is part of the contract, and it is governed by SAF instead: the resource RST.DELSTO with access level CONTROL, checked whenever the REST controls are active. Without the permit the request is refused before anything is deleted.

STORE

The storage whose namespace is to be deleted, in the same notation every other command uses: store.folder(), store.file(), store.s3(), store.azure(), store.ibmcda() or store.objuser().

For store.s3(), store.azure(), store.ibmcda() and store.objuser() PREFIX IS REQUIRED and must not be empty, and the request is refused before anything is deleted if it is missing. It is the only thing that bounds the delete there: the storage removes every object below it, so a store expression without a prefix would name the whole bucket or container. A prefix boundary is a whole path component -- a prefix of "arc" does not take "arc2" -- so two namespaces that share a leading string stay apart.

store.file() and store.folder() have no PREFIX parameter, because their path is already that bound and the CLP requires it.

No DECRYPT parameter is accepted. Nothing is read, so no key is needed, which is exactly what separates this function from archive.delarc().

Examples

Remove a namespace on S3 that an interrupted run left behind:

flcl util "run.delsto(store.s3(BUCKET=mybucket PROVIDER( ENDPOINT='https://s3.example.com' ACCESSKEY=... SECRETKEY=...) PREFIX='batch/2026-09-24'))"

The same for a folder store:

flcl util "run.delsto(store.folder(PATH='/data/arc/old'))"