Space problem removal

Hello,

We have a space called developement that is empty but we cannot delete it :

I did try to use the following script but with no success :

https://confluence.atlassian.com/display/CONFKB/How+to+Manually+Delete+a+Space

[root@syn-ops01 ~]# mysql -u root -p confluence < space.sql

Enter password:

spaceid

22642695

ERROR 1451 (23000) at line 367: Cannot delete or update a parent row: a foreign key constraint fails (`confluence`.`CONTENT`, CONSTRAINT `FK6382C059B2DC6081` FOREIGN KEY (`SPACEID`) REFERENCES `SPACES` (`SPACEID`))

[root@syn-ops01 ~]#

As you can see it was a failure to delete the space called developement.

Finally when I'm trying to delete it manually, same result, the removal is failling :

mysql> SELECT SPACEID FROM SPACES WHERE SPACEKEY = "Development";

+----------+

| SPACEID |

+----------+

| 22642695 |

+----------+

1 row in set (0.00 sec)

mysql> DELETE FROM SPACE WHERE SPACEID ="22642695" ;

ERROR 1146 (42S02): Table 'confluence.SPACE' doesn't exist

mysql> DELETE FROM SPACES WHERE SPACEID ="22642695" ;

ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`confluence`.`CONTENT`, CONSTRAINT `FK6382C059B2DC6081` FOREIGN KEY (`SPACEID`) REFERENCES `SPACES` (`SPACEID`))

mysql>

Please can you provide us a clean way to delete the unused space we have ?

Regards

Martial NDEKO-FOLLIGAN

CloudOps

1 answer

It seems that the issue you're encountering is related to this issue we have documented before: https://confluence.atlassian.com/display/CONFKB/Unable+to+Remove+Personal+Space+Due+to+Foreign+Key+Constraint

Let's give it a check and see if the resolution helps. Please backup the server before making any changes.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,008 views 22 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you