Eliminar periodos completos Diamante Contador

Estoy tratando de eliminar dos periodos completos…

pero me genera el siguiente error

QLSTATE = 23000
[ODBC Firebird Driver][Firebird]violation of FOREIGN KEY constraint “FK_DOCTOCONTABLE_MENSUALES” on table “DOCUMENTOS_CONTABLES”
Foreign key references are present for the record
At trigger ‘CHECK_2’

No changes made to database.

DELETE FROM periodos_anuales WHERE ID_PERIODO_ANUAL = ?

alguien me podría ayudar.