Fixing gray cancel button on delete page type page.
Delete page type files when deleting a page type.

Fixes #2266.