Implement class deletion and purge