code: def delete(self, device_id: int):
          
          device = self._get_or_abort(device_id)
          session.delete(device)
          session.commit()
          return '', 204
docs: Deletes the resource with the given name.