Remove dependencies from file