1. Delete the access code using the API
To delete an access code, specify the desiredaccess_code_id in the Delete Access Code request.
- JavaScript
- cURL
- Python
- Ruby
- PHP
- C#
Code:Output:
2. Verify that the access code has been removed
Poll for or configure a webhook to listen for anaccess_code.deleted or access_code.removed_from_device event containing the access_code_id of the access code that you’ve deleted. Note that if you delete an access code that was never programmed onto a device, Seam does not emit an access_code.removed_from_device event for this access code.
If you receive access_code.failed_to_remove_from_device or access_code.delay_in_removing_from_device events, see Troubleshooting Access Code Issues.
