@dp.callback_query_handler (lambda x: x.data and x.data.startswith ('del'))
async def callbeck_run (callbeck_query: types.CallbackQuery):
await sqlite_db.sql_delete_command (callbeck_query.data.replace ('del', ''))
await callbeck_query.answer (text=f' {callbeck_query.data.replace ("del" , "")} удалена. ' , show_alert=True )
async def sql_delete_command(data):
cur.execute ('DELETE FROM memorycfcb WHERE name = %s', (data,))
cur.execute ('DELETE FROM memorycfcb WHERE name = %s', (data,))