Hi All, I get the following exception when a new page that has yet to be saved is deleted. How do you check whether a page exists and it's ok to be deleted? Is there some #if checks I can put in the template .vm so that the delete button only appears if the page is valid? Thanks Duke Error number 3203 in 3: Exception while deleting document Main.TestForm Wrapped Exception: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1 com.xpn.xwiki.XWikiException: Error number 3203 in 3: Exception while deleting document Main.TestForm Wrapped Exception: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1 at com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiDoc(XWikiHibernateStore.j ava:775) at com.xpn.xwiki.store.XWikiCacheStore.deleteXWikiDoc(XWikiCacheStore.java:143)