Python slqalchemy

A model has data A1
B model has data b1

b1.key1 is a foreign key, associated with the primary key of a1.id

is there a problem for me to delete A1 data directly now?
db.session.delete (A1)
db.session.commit ()

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9b18b-1827.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9b18b-1827.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?