All Products
Search
Document Center

ApsaraDB RDS:ST_DeleteGTF

Last Updated:Apr 17, 2025

You can use this function to delete all the trajectory data files from an Object Storage Service (OSS) folder.

Syntax

void ST_DeleteGTF(text directory);

Parameters

ParameterDescription
directoryThe string that specifies the folder in which trajectory data files are located. Only folders in OSS are supported. The format of the parameter value is 'OSS://<AccessKey ID>:< AccessKey secret>@<Endpoint>/<Bucket>/<Directory>'. Trajectory data is stored in .gtf files in the specified folder.

Description

This function deletes the files that store trajectory data.

Examples

select ST_deleteGtf('OSS_PATH');
 st_deletegtf 
--------------
 
(1 row)