All Products
Search
Document Center

ApsaraDB RDS:ST_DeleteGTF

Last Updated:Mar 28, 2026

Deletes all trajectory data files from an Object Storage Service (OSS) folder.

Syntax

void ST_DeleteGTF(text directory);

Parameters

ParameterDescription
directoryThe OSS folder that contains the trajectory data files to delete. Only OSS folders are supported. Format: 'OSS://<AccessKey ID>:<AccessKey secret>@<endpoint>/<bucket>/<directory>'. The function deletes all .gtf files in the specified folder.

Description

ST_DeleteGTF removes all .gtf trajectory data files stored in the specified OSS folder. The function targets only files with the .gtf extension within the given path.

Examples

SELECT ST_DeleteGTF('OSS_PATH');
 st_deletegtf
--------------

(1 row)