como solucionar Error: Cannot delete or update a parent row: a foreign key constraint fails (`bd_sistema_gestao_2023`.`produto`, CONSTRAINT `produto_ibfk_1` FOREIGN KEY (`armazem_idarmazem`) REFERENCES `armazem` (`idarmazem`))
    at Packet.asError (C:\Users\user\Desktop\web_projetos\formulario_tvm\server\node_modules\mysql2\lib\packets\packet.js:728:17)
    at Query.execute (C:\Users\user\Desktop\web_projetos\formulario_tvm\server\node_modules\mysql2\lib\commands\command.js:29:26)
    at PoolConnection.handlePacket (C:\Users\user\Desktop\web_projetos\formulario_tvm\server\node_modules\mysql2\lib\connection.js:456:32)
    at PacketParser.onPacket (C:\Users\user\Desktop\web_projetos\formulario_tvm\server\node_modules\mysql2\lib\connection.js:85:12)
    at PacketParser.executeStart (C:\Users\user\Desktop\web_projetos\formulario_tvm\server\node_modules\mysql2\lib\packet_parser.js:75:16)
    at Socket.<anonymous> (C:\Users\user\Desktop\web_projetos\formulario_tvm\server\node_modules\mysql2\lib\connection.js:92:25)
    at Socket.emit (node:events:526:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10) {
  code: 'ER_ROW_IS_REFERENCED_2',
  errno: 1451,
  sqlState: '23000',
  sqlMessage: 'Cannot delete or update a parent row: a foreign key constraint fails (`bd_sistema_gestao_2023`.`produto`, CONSTRAINT `produto_ibfk_1` FOREIGN KEY (`armazem_idarmazem`) REFERENCES `armazem` (`idarmazem`))',  sql: "DELETE FROM armazem WHERE idarmazem='2'"
} Your entire response should be in English, and in all capital letters.
user