Create a new Elixir project, and add these depedendencies:
defp deps do
[
{:jason, "~> 1.1"},
{:timex, "~> 3.1"},
{:oauther, "~> 1.1"},
{:extwitter, "~> 0.8"},
]
end
Update your config/config.exs
with twitter creds:
config :extwitter, :oauth, [
consumer_key: System.get_env("TWITTER_CONSUMER_KEY"),
consumer_secret: System.get_env("TWITTER_CONSUMER_SECRET"),
access_token: System.get_env("TWITTER_ACCESS_TOKEN"),
access_token_secret: System.get_env("TWITTER_ACCESS_TOKEN_SECRET"),
]
Download and extract your twitter data dump, and update the module to point to its path. Start IEx and run:
TwitterDeleter.run