delete api controller