Method: MatrixSdk::Protocols::CS#delete_device

Defined in:
lib/matrix_sdk/protocols/cs.rb

#delete_device(device_id, auth:) ⇒ Object

Removes a device from the current user

Raises:

  • (MatrixNotAuthorizeedError)

    The request did not contain enough authentication information, the data in this error will include the necessary information to perform interactive auth

See Also:



1180
1181
1182
1183
1184
# File 'lib/matrix_sdk/protocols/cs.rb', line 1180

def delete_device(device_id, auth:)
  device_id = ERB::Util.url_encode device_id.to_s

  request(:delete, :client_r0, "/devices/#{device_id}", body: { auth: auth })
end