Hook for delete-page