some project was deleted from disk, but still can be seem from gitlab website, it shows:
No repository
The repository for this project does not exist.
This means you can not push code until you create an empty repository or import existing one.
when I click delete project button, meet 500 error code, and log shows
{"correlation_id":"01HT0929XNR963X8HF6ECHEVSE","error":"rpc error: code = NotFound desc = GetRepoPath: not a git repository: \"/zfs/gitlab_data/repositories/@hashed/03/1b/031b4af5197ec30a926f48cf40e11a7dbc470048a21e4003b7a3c07c5dab1baa.git\"","grpc.code":"NotFound","grpc.meta.auth_version":"v2","grpc.meta.client_name":"gitlab-web","grpc.meta.deadline_type":"regular","grpc.meta.method_type":"unary","grpc.method":"FindDefaultBranchName","grpc.request.deadline":"2024-03-27T23:39:50.010","grpc.request.fullMethod":"/gitaly.RefService/FindDefaultBranchName","grpc.request.glProjectPath":"xiamu/xiamu","grpc.request.glRepository":"project-51","grpc.request.payload_bytes":140,"grpc.request.repoPath":"@hashed/03/1b/031b4af5197ec30a926f48cf40e11a7dbc470048a21e4003b7a3c07c5dab1baa.git","grpc.request.repoStorage":"default","grpc.response.payload_bytes":0,"grpc.service":"gitaly.RefService","grpc.start_time":"2024-03-27T23:39:40.640","grpc.time_ms":0.106,"level":"info","msg":"finished unary call with code NotFound","peer.address":"@","pid":2172,"remote_ip":"192.168.0.104","span.kind":"server","system":"grpc","time":"2024-03-27T15:39:40.640Z","username":"root"}
{"method":"DELETE","path":"/xiamu/xiamu","format":"html","controller":"ProjectsController","action":"destroy","status":500,"time":"2024-03-27T15:40:39.817Z","params":[{"key":"_method","value":"delete"},{"key":"authenticity_token","value":"[FILTERED]"},{"key":"namespace_id","value":"xiamu"},{"key":"id","value":"xiamu"}],"correlation_id":"01HT0943Y92F45HBH7RZMAVAQJ","meta.user":"root","meta.project":"xiamu/xiamu","meta.root_namespace":"xiamu","meta.client_id":"user/1","meta.caller_id":"ProjectsController#destroy","meta.remote_ip":"192.168.0.104","meta.feature_category":"projects","remote_ip":"192.168.0.104","user_id":1,"username":"root","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36","queue_duration_s":0.017845,"request_urgency":"low","target_duration_s":5,"redis_calls":18,"redis_duration_s":0.0029,"redis_read_bytes":3379,"redis_write_bytes":2726,"redis_cache_calls":16,"redis_cache_duration_s":0.002315,"redis_cache_read_bytes":3166,"redis_cache_write_bytes":970,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.00029,"redis_shared_state_write_bytes":106,"redis_sessions_calls":1,"redis_sessions_duration_s":0.000295,"redis_sessions_read_bytes":213,"redis_sessions_write_bytes":1650,"db_count":9,"db_write_count":0,"db_cached_count":1,"db_replica_count":0,"db_primary_count":9,"db_main_count":9,"db_main_replica_count":0,"db_replica_cached_count":0,"db_primary_cached_count":1,"db_main_cached_count":1,"db_main_replica_cached_count":0,"db_replica_wal_count":0,"db_primary_wal_count":0,"db_main_wal_count":0,"db_main_replica_wal_count":0,"db_replica_wal_cached_count":0,"db_primary_wal_cached_count":0,"db_main_wal_cached_count":0,"db_main_replica_wal_cached_count":0,"db_replica_duration_s":0.0,"db_primary_duration_s":0.008,"db_main_duration_s":0.008,"db_main_replica_duration_s":0.0,"cpu_s":0.056148,"mem_objects":25771,"mem_bytes":3723938,"mem_mallocs":7514,"mem_total_bytes":4754778,"pid":3203,"worker_id":"puma_28","rate_limiting_gates":[],"exception.class":"OpenSSL::Cipher::CipherError","exception.message":"","exception.backtrace":["lib/gitlab/crypto_helper.rb:28:in `aes256_gcm_decrypt'","app/models/concerns/token_authenticatable_strategies/encryption_helper.rb:18:in `decrypt_token'","app/models/concerns/token_authenticatable_strategies/encrypted.rb:78:in `get_encrypted_token'","app/models/concerns/token_authenticatable_strategies/encrypted.rb:117:in `token_set?'","app/models/concerns/token_authenticatable_strategies/base.rb:40:in `ensure_token'","app/models/concerns/token_authenticatable_strategies/encrypted.rb:38:in `ensure_token'","app/models/concerns/token_authenticatable.rb:49:in `block in add_authentication_token_field'","lib/gitlab/database/load_balancing/connection_proxy.rb:120:in `block in write_using_load_balancer'","lib/gitlab/database/load_balancing/load_balancer.rb:115:in `block in read_write'","lib/gitlab/database/load_balancing/load_balancer.rb:184:in `retry_with_backoff'","lib/gitlab/database/load_balancing/load_balancer.rb:111:in `read_write'","lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `write_using_load_balancer'","lib/gitlab/database/load_balancing/connection_proxy.rb:71:in `transaction'","app/services/projects/destroy_service.rb:11:in `async_execute'","app/controllers/projects_controller.rb:197:in `destroy'","app/controllers/application_controller.rb:527:in `set_current_admin'","lib/gitlab/session.rb:11:in `with_session'","app/controllers/application_controller.rb:518:in `set_session_storage'","lib/gitlab/i18n.rb:105:in `with_locale'","lib/gitlab/i18n.rb:111:in `with_user_locale'","app/controllers/application_controller.rb:512:in `set_locale'","app/controllers/application_controller.rb:506:in `set_current_context'","lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in `call'","lib/gitlab/middleware/memory_report.rb:13:in `call'","lib/gitlab/middleware/speedscope.rb:13:in `call'","lib/gitlab/database/load_balancing/rack_middleware.rb:23:in `call'","lib/gitlab/middleware/rails_queue_duration.rb:33:in `call'","lib/gitlab/metrics/rack_middleware.rb:16:in `block in call'","lib/gitlab/metrics/web_transaction.rb:46:in `run'","lib/gitlab/metrics/rack_middleware.rb:16:in `call'","lib/gitlab/jira/middleware.rb:19:in `call'","lib/gitlab/middleware/go.rb:20:in `call'","lib/gitlab/etag_caching/middleware.rb:21:in `call'","lib/gitlab/middleware/query_analyzer.rb:11:in `block in call'","lib/gitlab/database/query_analyzer.rb:37:in `within'","lib/gitlab/middleware/query_analyzer.rb:11:in `call'","lib/gitlab/middleware/multipart.rb:173:in `call'","lib/gitlab/middleware/read_only/controller.rb:50:in `call'","lib/gitlab/middleware/read_only.rb:18:in `call'","lib/gitlab/middleware/same_site_cookies.rb:27:in `call'","lib/gitlab/middleware/handle_malformed_strings.rb:21:in `call'","lib/gitlab/middleware/basic_health_check.rb:25:in `call'","lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in `call'","lib/gitlab/middleware/request_context.rb:21:in `call'","lib/gitlab/middleware/webhook_recursion_detection.rb:15:in `call'","config/initializers/fix_local_cache_middleware.rb:11:in `call'","lib/gitlab/middleware/compressed_json.rb:26:in `call'","lib/gitlab/middleware/rack_multipart_tempfile_factory.rb:19:in `call'","lib/gitlab/middleware/sidekiq_web_static.rb:20:in `call'","lib/gitlab/metrics/requests_rack_middleware.rb:77:in `call'","lib/gitlab/middleware/release_env.rb:13:in `call'"],"db_duration_s":0.00107,"view_duration_s":0.0,"duration_s":0.0275}
so how to delete this project from database and redis?