delete error code and files