Help Center/ GeminiDB/ GeminiDB Influx API/ FAQs/ Database Usage/ What Do I Do If "delete is forbidden" Is Reported?
Updated on 2025-12-18 GMT+08:00

What Do I Do If "delete is forbidden" Is Reported?

When a logical deletion command, such as delete/drop measurement, is executed, error message "delete is forbidden" is displayed. Executing a logical deletion command is inefficient, and the system may hang. You can set a retention period (RP) to automatically delete data.

The RP determines how long data will be stored. You can adjust the duration parameter to specify when data will be automatically deleted. For example, if the duration is changed from 7 days to 3 days, the data will be deleted 3 days later.

But the change does not apply immediately. The actual triggering time depends on the detection period and shard expiration time. Generally, the detection period ranges from 30 to 60 minutes.

For details about how to set the RP, see RETENTION POLICY.