rm .metadata and return data to last activity