You can use the Community Invitation API with the DELETE method to decline an invitation as an invitee or revoke an invitation as a community owner.
||Value of the href attribute of <link> element that has a rel="edit" attribute value for each entry in the My Invitations feed.
||The uuid of community that you want to query about. This is a mandatory parameter
||id of user you wish to decline/revoke invitation
||OK. Indicates that the invitation was successfully deleted (and no content is returned).
||Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.