Removes a follow relationship between your account and another user on Bluesky Social. This is equivalent to clicking the "Unfollow" button on a user's profile. Requires the record key of the follow relationship.
Arguments
- my_did
Character. Your decentralized identifier (DID) obtained from
get_tokenresponse- rkey
Character. Record key of the follow relationship to delete. Can be obtained from
get_all_follow_recordsor by parsing the URI fromfollow_actorresponse- token
Character. Authentication token from
get_token
See also
follow_actor, get_all_follow_records,
find_follow_record
Other follow-management:
extract_follow_subjects(),
find_follow_record(),
follow_actor(),
get_all_follow_records()
Examples
if (FALSE) { # \dontrun{
# Authenticate first
auth <- get_token("your.handle.bsky.social", "your-app-password")
token <- auth$accessJwt
my_did <- auth$did
# Get all your follow records to find the one to delete
all_follows <- get_all_follow_records(my_did, token)
# Find the record for a specific user
target_profile <- get_profiles("example.bsky.social", token)
target_record <- find_follow_record(all_follows, target_profile$did)
if (!is.null(target_record)) {
# Extract record key from URI (after the last slash)
rkey <- basename(target_record$uri)
# Unfollow the user
result <- unfollow_actor(my_did, rkey, token)
if (!is.null(result)) {
message("Successfully unfollowed user!")
}
}
} # }