I have been developing a project locally, using Appwrite 1.5. I am now deploying to the Cloud version.
I have been using the usersDelete GraphQL method from a serverless function, which is authenticated with an API Key that has users.write permissions. This works fine locally, but when deploying the function runs but the requested user is not being deleted. Is the usersDelete method available on the Cloud version?
I cannot find documentation about usersDelete in either the 1.5 or Cloud docs, but have seen discussions about it and it clearly works in my local 1.5 version.
When running the function with logs, I can see the response from the invocation is "message": "" - so there's no indication of whether it has succeeded/failed, and there's no permissions or "method not available, did you mean..." error.
If usersDelete is not available on GraphQL Cloud, is there a similar method I could use and if so where is the documentation for it please?
Replication code (the environment variables and data has been confirmed through logs to be the correct ones):
// delete auth account
const authUserDeleteResponse = await graphql.mutation({
query: `
mutation DeleteAuthUser(
$userId: String!
) {
usersDelete(userId: $userId) {
status
}
}
`,
variables: {
userId
}
});
};
Recommended threads
- I’m facing an issue with deployments on ...
Hi Appwrite Support, I’m facing an issue with deployments on Appwrite Sites. A few days ago (around 3–4 days back), everything was working perfectly. My deplo...
- Redis with user/pass doesn't work NO_AUT...
When trying to externalize my redis to a valkey server, i saw the user/pass doesn't work. After looking the appwrite code, i saw some of the init does not pass...
- Appwrite Cloud project is paused and nev...
Hi Appwrite Team & Community, I am facing a problem with one of my Appwrite Cloud projects which seems to be identical to the other cases of "paused projects" ...