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
Parameter | Description |
---|---|
directory | The 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)