<% page_title "Deactivate Account" %> <%= render "secondary_links" %>
<% if @user == CurrentUser.user %>

Deactivate Account

<% else %>

Deactivate Account: <%= link_to_user @user %>

<% end %>

You can deactivate your <%= Danbooru.config.app_name %> account by entering your password below. Deactivating your account will do the following things:

  • Change your username to a generic username (user_<%= @user.id %>).
  • Delete your password, email address, and account settings.
  • Delete your favorites.
  • Delete your saved searches.

The following things will not be deleted:

  • Posts you've uploaded.
  • Your comments, forum posts, and private messages.
  • Your tag edits, wiki edits, translation notes, and any other contributions you've made to the site.
  • Your login history, including your IP address and geographic location. This is kept for moderation purposes.

Enter your password below to deactivate your account. This cannot be undone. Your account cannot be recovered after it is deactivated.

<%= edit_form_for(:user, url: user_path(@user), method: :delete) do |f| %> <%= f.input :password %> <%= f.submit "Deactivate account", "data-confirm": "Are you sure you want to deactivate your account? This cannot be undone" %> <% end %>