delete restart cgminer in api file