Fix API key deletion