You can call the DeleteTimeseries operation to delete a time series table.
Prerequisites
A time series table is created. For more information, see Create a time series table.
A TimeseriesClient instance is initialized. For more information, see Initialize an OTSClient instance.
Parameter
Parameter | Description |
timeseriesTableName | The name of the time series table. |
Example
The following sample code provides an example on how to delete a time series table.
private static void deleteTimeseriesTable(TimeseriesClient client) {
// Specify the name of the time series table.
String tableName = "<TIMESERIES_TIME>";
DeleteTimeseriesTableRequest deleteTimeseriesTableRequest = new DeleteTimeseriesTableRequest(tableName);
client.deleteTimeseriesTable(deleteTimeseriesTableRequest);
}