Make sure you include an option for "how long ago" to do the deletion. You don't want to delete an account just a few minutes or even hours old. You might want to make it like "one year old and older" but just make it an option that the end user can select.
Checking last active might be a choice. Often people will sign in and simply never post, but continue to read content.