DataApi Access for Deleted Datatypes

Hi ,
im noticing that when i created a datatype and enable the data API to access this then delete the datatype, the data API will still maintain connection to the deleted database( in development mode not Live).

has anyone else notice this? seems old that once datatype is deleted the data API still has access to it eventhou it shouldn’t exist in the application ( i know we can restore deleted datatypes which is probably why the data api still sees the deleted datatype).

does anyone know if this happens on a live version of an app?

Thanks

Try restoring the datatype, then unchecking all the privacy rules related to the data API, then deleting again

Also you can do Optimize Application and remove old/deleted datatypes