remove used projects and hooks