Release a *.tpk file so it can be deleted.

476
2
09-12-2017 10:07 PM
marceloctorres
Esri Contributor

What is the right way to release a * .tpk file that was being used by a MobileMapPackage so that it can be deleted.

Marcelo César Torres
0 Kudos
2 Replies
AnttiKajanus1
Occasional Contributor III

There shouldn't be any locks for the tpks files. Could you describe the use case more in detail? Are you using the file in a map at the same time? Have you removed all the references to it's usage? Are you just deleting the file?

0 Kudos
dotMorten_esri
Esri Notable Contributor

Any layer that currently renders the layer will keep a read lock on the TPK. Make sure all objects that references the TPK are released and garbage collected, and then you should be able to delete it (you might have to wait for GC to complete first)

0 Kudos