Skip to content
Back

Deleted a column but can't reuse name

  • 0
  • 3
  • Cloud
Camka
23 Oct, 2025, 00:55

I deleted a relationship column because I was having trouble with deleting a row and I was suspicious of the relationship. After deleting the column the row was successfully deleted, however now I can't add the relationship column back since it says the column name is already being used.

TL;DR
User deleted a column but can't reuse the name. Tried deleting relationships and attributes, but kept getting errors. Ended up migrating database to fix 'ghost' attribute errors. No longer experiencing the issue.
23 Oct, 2025, 01:41

Deleted a column but can't reuse name

23 Oct, 2025, 06:20

Which version are you using? In 2024 I had the same problem, it was solved with an update. I sent the link, is it a similar event?

23 Oct, 2025, 16:06

This is on cloud, so I can't update anything

24 Oct, 2025, 18:18

can you share exact steps including what relationship attributes you had so we can reproduce the issue?

24 Oct, 2025, 20:23

So I had a two-way one-to-many relationship and I tried deleting a row that had this relationship filled, but I kept getting an error saying it wasn't able to delete the row. So I deleted the relationship attribute and then was able to delete the row. Then I tried adding the relationship back and I get this error.

25 Oct, 2025, 00:03

I just tried to recreate the situation but now I can't delete the new rows I created. The rows don't have any relationships so I'm not sure what is going on. I can give you my project ID if you want to check it out.

28 Oct, 2025, 23:58

Hey Steven, any progress on this? I switched from the relationships to just using document Ids, but I'm getting blocked. When trying to create a new row I'm getting AppwriteException('Invalid query: Attribute not found in schema: field'), but I'm not providing field in my query. It seems like there are just extra attributes somewhere in my database that I don't have any method of deleting. If possible, could someone delete all the relationship attributes that are still in my project? I removed them all myself but it seems like there's some lingering.

31 Oct, 2025, 00:15

what SDK are you using and what version is it? What's your project ID, database ID, collection ID, and column that is having issues?

31 Oct, 2025, 02:16

I was using the Python SDK, but I ended up fixing the issue by migrating my database to a self hosted instance then migrating back. This seemed to have cleared all the 'ghost' attribute errors I was getting. Do you still want the IDs?

31 Oct, 2025, 18:41

if it's not happening anymore, i probably won't be able to find out details looking at it in the backend

1
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more