/** * Deletes the contact by first removing contact from corresponding contact groups and then * deleting the contact */ @Security.Authenticated(Secured.class) public static Result deleteContact(Long id) { Contact.delete(id); return redirect(routes.Application.contacts()); }