Skip to Content
put.ioDevelopers
Register an app

Remove a friend

POSThttps://api.put.io/v2/friends/{username}/unfriend

Removes the friendship and every file share between you and the old friend, in both directions.

Path

usernamestringRequired

Returns

200

statusstring

Errors

JSON with error_type, error_message, error_id and extra.

400CANNOT_FRIEND_WITH_SELF
404USER_NOT_FOUND or FRIEND_NOT_FOUND. A plain 404 if the username has 4-byte characters.
429Too many requests. Limits are per token and per IP. Wait until X-RateLimit-Reset, then retry.